(#599) - Correct implementation of total_rows in db.query api
(#599) - Limit option and total_rows in allDocs api
(#599) - Fix lint errors