Modified registerObject to return id

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

Modified registerObject to return id