wip: refactored accounting and added charge applied event
Merge remote-tracking branch 'vishwas/mifosx-240'