Move templates to correct location, fix typos and refactor the same

This code used to be in the context processor that gets the user balance for the top bar.
It proved useful in more places than one so i made a helper function out of it and placed it in `accounting/utils.py`