Modified registerObject to return id

Jira issue: WP-933
Fixes for error callback handling

Jira Issue: WP-1251
Merge pull request #22 from smonteleone/WP-933-serviceConfig

Modified registerObject to return id
Merge pull request #23 from habibvirji/WP-1251-bugFix

Fixes for error callback handling
use proper if-else

Jira-issue: WP-1251
whitespace fix

Jira-issue: WP-933
bump version to 0.8.6
Merge pull request #24 from aldafu/WP-1251-fix-errcb-handling

Wp 1251 fix errcb handling