code cleanup

My intention is to facilitate calling of transaction parsing functions
from outside the ftplugin script thus I moved to implementation to an
autoload file.