Added uiErrorHandler, for handling errors from the UI. Has access to res and data e.g. req.query or POSTed data. Fixed login box errors as a test case
Error handling for the post thread form
Error handling for posting comments
Search box validation
Preferences errors
Tidied up uiErrorHandler newThreadError handling
Merge pull request #31 from cham/form-error-handling

Form error handling