Maintain kbucket module. Improve coverall score to 100%.

### Changelog:
* Fix the documentation of `node/kbucket.py`. It has fallen out of sync since is #652 got merged.
* Improve the coding style a bit.
* Store the `market_id` attribute.
* Refactor the unit tests a bit, add some tests, bump the code coverage to 100%.