improving the commands package to be more standalone and send ajax responses in all cases. All errors should be returned as http errors so they are by default passed to the error handler in a jquery function rather than checking for a status in the success handler.