Basic Whoosh facet support

Only basic facets, no dates and query facets are supported.

This is an updated version of the pull request (#816) from @parruc
with updated tests and documentation.