Reorganizing functions.
Moved functions for votes and translations to lib/fn/.
Using class 'btr' of the global namespace.