Moved all subcommand functions to a new commands.c file in preparation for their rewrite. Converted all static declarations to global, moving them to a new services.h file.
Moved all subcommand functions to a new commands.c file in preparation for their rewrite.

Converted all static declarations to global, moving them to a new services.h file.