support for sinatra namespaces
fix a few inadvertant bugs
Merge pull request #11 from brianphillips/master

support for sinatra namespaces