Auto set the release stage

Set the release stage to dev if we are compiled with DEBUG on, or if the
debugger is attached - else default to production.
I don't think problem is that the info isn't there, its that some calls are optimised out / rearranged e.g. [Inlining](http://www.hanselman.com/blog/ReleaseISNOTDebug64bitOptimizationsAndCMethodInliningInReleaseBuildCallStacks.aspx)

TBH, I'm still learning all the intricacies of exceptions / stack traces so hopefully the testing will improve over time