Patching ngResource

Crazy hack of ngResource

Long description will follow.