Fixes issue #11 so poorly formatted JSON in POST will not crash server

This pull request includes the commits from PR #16 and PR #17 .  It fixes issue #11 by catching the ValueError thrown if json.loads is used to attempt to parse poorly formatted JSON.

Two regression tests were added (one for the edit post, one for the create post) to prevent the issue in future versions.