Merge pull request #390 from anandpdoshi/fixes-python-mysql

Fixes for MySQL-python==1.2.5
login and other fixes
fix set all_patches and installed_apps before running after install
moved pretty_date to separte file and now can build from different apps
fixes to session and added dynamic script loading website.js
Load wn.require assets only once
Fix: webnotes post_install hook
Fixes for MySQL-python==1.2.5
cli.py validate same argument is not passed more than once
fix in nested set
throw status code 403 for not permitted queries
throw error if doctype not specified in bean
added get_file_url method
Shifted prettyDate from datetime to pretty_date.js
added option to cli - flush_memcache
Pass filters to get_template, Website: split page name by /
Fixes source paths in base.html
Fixed scheduler, webnotes scheduler events and delete doc
Fixes in scheduler logging, get_fullname and jinja environment