Fix tests for new form widgets
Python 2.6 compatibility
Remove debug print statement
Merge branch 'bug/scripts-at-bottom' into project/acys

* bug/scripts-at-bottom:
  Remove debug print statement
  Python 2.6 compatibility
  Fix tests for new form widgets
  Move chooser panel HTML to widgets
  Refactor edit handler JavaScript integration
  Move <script> tags to top of body

Conflicts:
	wagtail/wagtailadmin/edit_handlers.py