clean-up and testing set-up

* clean-up of runserver, manage, and settings modules
* started testing module in pubs_ui
* added nose and mock packages to Requirements.txt for test collection and mocking for tests