Making the Origin Setable

There is also some refactoring so I coudl stick a proxy inside as well.
We should put the path ""/xhr/shop/search" in a constant as well since it is used multiple times and, as of now, always used with "http://matrix.itasoftware.com"