Add transform module content function to be used in postgres

For example,

`SELECT html_content(encode(file, 'escape')::text) FROM files`

to get the cnxml in "file" transformed to html,
but this does not add any files to the database.

MANUAL-UPGRADE: add a function (see schema.sql) to existing db
Change cgi.parse_qs to urlparse.parse_qs as it's deprecated

cgi.parse_qs has been copied to urlparse.parse_qs
(https://docs.python.org/2/library/urlparse.html#urlparse.parse_qs)
Add pagination to search results, default 20 results per page

For example, if you search for `q=introduction`, you'll get 5 results.
You can force pagination by searching for `q=introduction&per_page=3`.
You will get 3 result items instead of 5 and you can fetch the remaining
2 items by doing `q=introduction&per_page=3&page=2`.

Search results `query` will now contain the `per_page` value and `page`
number.  Search results will only return 20 `items` by default.
Everything else in the search results remain unchanged.
Merge pull request #227 from Connexions/search-pagination

Search pagination
Merge pull request #226 from Connexions/transform-module-content

Add transform module content function to be used in postgres
determine recencey based on data, not clock