add error modal and utility functions for error handling
fix default message
Merge pull request #511 from optimizely/dfoxpowell/error-dialog

add error modal and utility functions for error handling