Removes templates and uses responders to render json
Adds db for test environment
Adds tests for States view