Fixed some bugs in the Share Service template.
Fixed bug: pingMessageResponse method of ShareService not under prototype.