Fixed API utils

The applications were sending raw Python structures to the API (most likely a string representation of the dictionaries/lists) as opposed to the proper JSON encoded format. Added `simplejson.dumps` calls around the sending, fixing the fault.
Changed default port for API server.

It now runs on port 8000 instead of 8080, which is typically used for http proxies and may cause conflicts.