changed self.delete to self.delete_key in base_document and document

DocPerm has a field called 'delete'. This clashes with the function name.
Leads to this error:
self.delete("__in_insert")
TypeError: 'int' object is not callable
Merge pull request #703 from anandpdoshi/anand-july-17

changed self.delete to self.delete_key in base_document and document
Error Reporting: Box for additional info, also send Route
Correct way to throw error in frappe.throw
Merge pull request #704 from anandpdoshi/anand-july-18

Fixes in error throwing and reporting
Show labels in appframe form
Merge pull request #706 from anandpdoshi/anand-appframe-form

Show labels in appframe form
Escape hash in attachment url, fix frappe/erpnext#1961
Merge pull request #707 from pdvyas/attachment-url-hash

Escape hash in attachment url, fix frappe/erpnext#1961
Added babel, allow script report columns and data as a list of dict
localize_date using babel
Query Report: Load Print Format if specified in report's python module
Minor fix in query report
Can use {% include 'path' %} to embed common print template for reports
Fixed duplicate print buttons
Changed localize_date to formatdate
Merge pull request #705 from anandpdoshi/anand-reports

Babel and Query Reports
Clear notifications where necessary, and not during clear_cache
[fix] get_url_to_form should be relative. URLs are expanded to during email sending.
Merge pull request #708 from anandpdoshi/notification-count-deadlock-fix

Clear notifications where necessary, and not during clear_cache