Begin refactoring to new RESTful backend