add spinner to build and deploy

add spinner to build and deploy

- add loading flags
- handle errors when building

@seanbrookes please review