Move registering keybinds & commands out of lint() function.

Moves registering keybinds & commands out of `lint()` function. Followup on #40.