implemented automatic handling of API error codes in form submissions
detect and throw an error when form messages would not be shown to users

stop needlessly passing form options around internally
added error handling for API errors and uncaught AJAX exceptions in Form class
added modal template for catching uncaught errors for the user
a few styles for error modal
remove wheel reinvention
map serverside password mismatch error to its input