basic support for reboot, shutdown, halt, etc.

 - return data formatting needs some attention
Merge pull request #4115 from cedwards/system

basic support for reboot, shutdown, halt, etc.