Merge branch 'bpa'
Fix prebill sorting
Add new columns
Russian doll caching on projects/invoices
Use new db fields for pending invoices/plan totals
Update caching
Fix finalize links on invoices
Remove PENDING_PM
Gem updates; fix specs