Added flash messages in trainer signup and org registration.

closes $4.
Fixed error in org signup.

It got broken after adding username to trainer signup.
Enabled emails on internal error.
customized 404 and 500 pages.