just a wrapper around request which intends to be active-resource in javascript