Search improvements

Some refactoring, rename text parameter to query, ability to specify
page number, some additional checks.
Allow None for XML RPC results
Merge pull request #52 from Kagami/feature/improve-search

Search improvements