WIP Create total for dashboard

Finish totals for Dashboard. WIP banks totals

Add totals for banks and complete total

Add transaction dependency on envelope model

Refactor envelopes controller to reflect available methods.

Refactor controllers

Apply before filter to stop redirect loop

Refactor styling for custom css

Refactor styling for dashboard stats

Refactoring view for dashboard

Refactor of controllers, views and tests