Support Sinatra::ExtendedRack. Fixes #30

Getting the app out of a Sinatra::ExtendedRack was perviously broken. This fixes this issues and closes #30. Commenters on this issue have confirmed that it fixes the issue.