minor refactoring of server error handling, added initial OrderResource, and other cleanup