add simple doc & fields for solr.
works with solr add doc in json.
did a little refactoring.
removed collection param.
Merge pull request #1 from droxer/develop

It works for adding Solr doc.