Tests changes

This pull request adds a new class called WagtailTestsUtils which contains a couple of useful functions (login and assertURLEqual) and makes use of it throughout wagtail.