made basic_auth optional
refactor authorized_redirect
Added comment for after_create in email model
added redirect in create; removed render; make optional basic_auth work