Added helper files and routes
Refactored to add rspec tests and fix API responses.

TODO: Fix Front-end UI to reflect changes.