relay --log-level debug to proxy
avoid KeyError in logging with IPython 2
fix IOLoop / subprocess cleanup

- use IOLoop.current
- don't stop loop in cleanup
allow threaded access to sqlite by default
add mock utils to tests

basic testing framework to get starting writing and testing the REST API

including tests for the authorizations API,
the only API URL defined so far.
Merge pull request #28 from minrk/mocking

add mock utils to tests