ui: Include site CSS before jQuery UI CSS

This ensures that the site stylesheet may override defaults from the
jQuery UI theme.
db: Use multiple arity for count-rows function

This allows us to use the str/blank? conditional to determine whether to
append " WHERE xxx" to the generated SQL query. By doing this, we can
call (count-rows "table" "") and get a syntax error when the generated
SQL query ends with "WHERE".

Issue #311.
db: Add a search-with-no-of-records-matched func

Issue #311.
pages/record: Remap the ID parameter in request map

This allows us to call the db/search function in the same manner as the
search page, using a single call to the database search method.
query: Add an :exact key to string conditions

And use this in the "id" parameter of searches.

Issue #311.
db: Remove multiple arity from search function

Issue #311.
js/main: Define default pi slider values
db/search: Implement x-pip-db-* HTTP header support

The idea here is to allow agents to specify further information about
the type of results to be returned. Currently supported headers:

    X-pip-db-Query-Terms:   Disable query terms in response map
    X-pip-db-Records:       Disable records in response map

Issue #311.
Implement an api namespace and URL base

Issue #311.
Implement AJAX search results count indicator

Issue #311.
Merge branch 'issue/311'