For remote, probably the easiest solution is finding an original Apple IR module from a Macbook Pro or so. I got one and connected it to an internal USB-port which enabled wake/sleep using the Apple remote, or even better, my Harmony remote (for which Plex has a special setting).