Implementation of Martin Fowler's Money pattern with some extra tweaks written in PHP :)