Added pipeline support.

- Added a better api for pipelines.
- Added a default solr pipeline.
- Updated docs with usage examples