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