Enhance the overriden $location service's search() method.

We had only implemented search() as a getter. This change emulates Angular's
behavior for using this method as a setter as well, allowing an application
running in server context to manipulate the request's query string.