Add CodeClimate badge to Readme.
Refactor Stateful module.