Add in factory boy to simplify test setup
Tests for spotlightify and helper methods on dashboard

spotlightify should return a dict that conforms to spotlights dashboard
schema.

Here we test that it handles links and agency deparment correctly. We
also have unit tests which flesh out the agency/department logic in more
detail
Finish dashboard spotlightify method to meet the test requirements
Tidy for pep8 and remove print
Refactor and simplify spotlightify and helper methods
Merge pull request #196 from alphagov/dashboard-spotlightify

Dashboard spotlightify
We need to invalidate on update as well as reauth

Signon will send a reauth message when a user is logged out or
suspended, but a user can also lose permission to our app through their
permisssions being updated.

We should be invalidating on an update otherwise a user can be updated
to not have permissions and carry on using the app. BAD!
Add some logging