fixed csrf hook, env default, and config extention
added stack trace errors in dev mode
added stack trace to error objects in log
Merge pull request #495 from Zolmeister/development

fixed csrf hook, env default, and config extention