create build deploy service

- move api calls to service
- add ui-switch widget for toggling
- add disabled branch that shows "Your current directory" as the value