Added Resource class, removed Service prototype

Adds the Resource class, intended to eventually replace Model.Ajax.