Misc. improvements to the RestService class