Added service layer and wired up the api controllers