:bug: Fix null dereference in handleEvents

Fixes #2

The code was calling `tabsToSpaces.handleEvents()` without loading the
module first. Rearranged the code so that `handleEvents` is no longer a
part of the module so that the module doesn't have to be loaded unless
`tabify` or `untabify` are called.