Refactoring.
Initial version that works with kb, bugzilla and github.