Wiring up new rest paths to front end, refactoring, code cleanup