Adding tests for controllers.
Merge pull request #200 from dnephin/0.6_update_docs

Update docs and pull out some logic from tron.api.www