[minor] wnf refactor, fixes in demo
Merge branch 'wsgi' of github.com:webnotes/wnframework into wsgi