Done some work on the component service layer

Got the methods in and was about to test the api route. There were some issues there so reverted the api routes until we're ready. Continued fleshing out the service layer.