Added Resource class, removed Service prototype