Added specs for testing sinatra/json.
Added sinatra-config for testing.
Cleaned up for readability.
Added support for sinatra/json.