Add shutdown and halt functionality

Don't pull just yet, GUI has to be added too