Tests

The first commit adds a couple of utility functions to help with testing the admin interface
The second commit creates some models in wagtail.tests
The third commit creates some tests for wagtailadmin
The fourth commit added ElasticSearch settings to runtests.py but I had to revert this as the elastic search tests failed on TravisCI (will look into this tomorrow)

Let me know what you think