Extract credit and accountCurrency functions from Pathfinder.

* Remove free functions from Pathfinder.h and .cpp into their own files.
* Rename these functions to correspond to style guidelines.