json, response objects, & empty string equations

added some modularity for the HttpResponse objects, excluded the empty
string equation name from list of equations returned, and changed how
we return the json to avoid potential csrf-related errors. also
rearranged some things to put all the ios stuff together and the webapp
stuff together