Implements stage deployement and cleans up other stage code; adds tests

post_param raises an exception if "id" is not present. I don't see how that exception is being handled?