Create addOptions method; bug fixes

Allow options to be added to the rest service after creation. Fix bug
caused by incorrect encapsulation (or lack thereof) when attaching rest
methods to the prototype.