add support for collections

In reference to issue #28 

This hasn't been tested in all scenarios - only one project - but it works in production in that scenario.
Need to render the document (so it gets reduced correctly later).
```ruby
body = renderer.render(document)
SearchEntry.new(data['title'], data['url'], Time.now, '', body, data['collection'])
```