Removed unused imports and made a few small style changes in views
Reverting query style change in list_invoices
Merge pull request #621 from caktus/fix/cleanup-views

Removed unused imports and made a few small style changes in views