add tests for server utils
make request module injectable
add test for RestAdapter
test for passing through the error object
test error-handling for invalid json responses
remove unreachable OR branch
improve test for isJSONResponse
json property should not be set for different content types
add test for getBootstrappedData
add ability to clear cached layouts
add test for passing through the error object
add test for the layout template cache