HttpPost calls now send request data in JSON format. Http interactions
cleaned up. Not necessarily the best way to do things but it works...

Change-Id: Ib57672e47480291df6bbe8e720dfdbbfefb71705