Initializing i in the for loop. Copying this code without the initialing has been traced to two bugs already.
Initializing previous uninitialized variable i. Without this all collections will not be tested for.
Removed verbose output to error log.
Fixed bug where we allocated a fix size buffer for holding all collections names for a user. If we had more collection they would not be included in the search.
Merge pull request #11 from oiuweirwe/master

Changes for document rest push.