Merge branch '0.5.3-maint'

* 0.5.3-maint:
  Tidy up user code and allow editing of profiles.
  Link the workflow model to the user model properly.
  Update tests for devise work.
  Switched user authentication to devise.