Created stub functions for all operations.
Added requires_site function to check that a site has been specified for certain operations.
Added error handling function error_exit
Changed configuration variables to a more sane naming convention.
Updated error handling in other functions.
Added handling for unknown operations.