Merge pull request #9 from tidepool-org/jhbate/bugFixes

fixes for return codes and ensure parentmessage not set on send
Merge branch 'master' into jhbate/integrationFixes