Fixing bug related to passing only url as single parameter
Fixing bug related to passing only url as single parameter

* refactoring helper functions to clean up the inline function defs, improve readability

lyconic/jquery.rest