Functional test helpers

This will ease redundant operations like signing in or out a user in the selenium tests.