Add a Reboot resource into core. (RFC code.)

For ease of testing, the actual reboot is commented out.
This should probably go further down in the `ensure` block, after all the exception handling.  Probably before the GC.start?  (maybe even after if we want the destructors called on things like tempfiles in order to clean them up).