page type business rules
Made login view redirect already logged in users to dashboard.
Fixes #25
Merge branch 'tests-changes' into issue-25
Added test to check that wagtailadmin behaves correctly when LOGIN_URL is not set
Fixed issue with 'django.contrib.auth.views.login' not being reversed properly
Merge remote-tracking branch 'torchbox/master' into issue-25

Conflicts:
	runtests.py
Merge pull request #291 from kaedroho/issue-25

Made login view redirect already logged in users to dashboard.
tweaks to make modals fade better
added better comments. tweaked when modal is shown
tidied image chooser.js
Merge remote-tracking branch 'upstream/master' into feature/better-modals
Set treebeard attributes in preview on create view. Fixes #320
Added tests for db6bb92
Cleaned up wagtailembeds/tests.py imports
Merge branch 'business-rules' of https://github.com/lojack/wagtail into lojack-business-rules

Conflicts:
	wagtail/tests/models.py
	wagtail/wagtailadmin/tests.py
remove redundant imports from wagtailcore/models.py
Merge pull request #321 from kaedroho/issue-320

Set treebeard attributes in preview on create view. Fixes #320
Remove subpage_types logic from is_navigable and get_navigation_menu_items. It's now clear that we will never mandate the use of subpage_types, so we can't use its presence or absence as an indicator of whether or not a page is appropriate to be included in navigation menus.
Deprecate get_leaf_page_content_type_ids and get_navigable_page_content_type_ids, as they have incorrect semantics for page subclasses that don't define subpage_types. Replace them with a naive implementation that doesn't require metaclass hacks
Tweak subpage_types logic so that subpage_types=None (or undefined) means 'no restriction on subpages', freeing up [] to mean 'no subpages allowed'