add better error handling for build and deploy

add better error handling for build and deploy

- add message type to form messages
- show an error if you can't build properly

@seanbrookes please review
would be good to refactor these messages to contants or tokens at least