significant changes. removed the Tornado dependancy. Added canonical. Library can now work as a stand alone module.