removed application logic
now just returning raw string, so client can determine how to deal with the data, rather than always getting a json_decode object (use deserializer)
changes in preperation for building tests