adding caching and environment support for sinatra application tweaks.