Implemented persistent category name

Implemented persistent category name handling by getting the category name associated with the category id. The response has also changed from a binary (1 or 0) to json.