Added in default_where variable which is supposed to hold a default month value inside it so
that initially all tiers will contain the current month's demos/schedules
Made some small changes and improvements where necessary
Placed brand_id where necessary to hold brand_id info when a brand is logged into br_mainpanel
Fixed file links to use window.location.href
Update file links for viewing replacing with button

MAJOR CHANGE :: Income Records table and statement at top of invoice view now both can
refresh their datapoints to retrieve latest information regarding things like net,tax,
rep pay etc... If they have been changed.

New defined setting (INVOICE_AUTOREFRESH_DATAPOINTS) see config
Add refresh data points button on Income Records

Took out inclusion of unecessary CompletedDemos class (which was also including the very file
that was including it haha, and used straight db pull down)