Tbaeg

Basic error handling set but will become more verbose with time. Lots of additional things to be added. Currently the API returns a promise which is handled in the controller. 
need to remove all console logs... can't leave those in on the front end.  we can look into a framework for logging front end stuff potentially