Refactor url module

Mainly the `getUrlVars` method.

Also, trying to get away from using native array methods (which aren't always fully supported) and moving to lodash