Split logic and display for user manager

* fixed login/logout
* combined profile editor into a single template
* added 'prompt' template, which will be used in the tag and page
  managers as well