abstracted code out from transactions_controller to models
Merge branch 'develop' of github.com:CH-JesseMa/karma_app into develop