Abstracting out a lot of common code into /includes/initialize.php

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Changing filenames for tab content to tab_*.php to clarify what is page content and what is not.

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Changing filename of navigation from include_login.php to navigation.php - trying to rationalize filenames as much as possible

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Moving administration / impersonation UI control down to the footer, separated from the filter control on left sidebar

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Cleaning up CSV exporter in anticipation of abstracting query builder out to initialize.php

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Adding CSV export to timeline tab

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Sending session variable for username rather than local $reqA variable on author page

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Implementing general query builder for CSV exports, building toward use on UI tabs as well

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Cleaning up export formats that aren't supported yet (PDF/PNG) - this addresses #22

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Fixing destroyer's ability to call common initialize functions

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Temporary addition of destruction of "impersonate" session variable, which was renamed "impersonator". This won't be in the code for long.

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Makes the debugging panel conditional upon admin status. This resolves #23.

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Trying the salt lookup inside the warehouse lookup function, since I believe that's the only place it is needed, and there are variable scoping issues creeping in.

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Sets the displayed value for no data as "0" rather than "No Data"

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Removes slight translucent quality of map, which fixes a color fidelity problem and resolves #17

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
By default, sort the tabular data on the map tab by downloads, descending. This resolves #18

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Adding separate field list to query builder, for use in export code

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Better file name for exported CSV file;
Field names from the fields array in query builder;
Implementing after-the-fact sorting of returned data, because sorting subdocuments is apparently not possible in Mongo;
Starting to augment returned data with fields like running totals - going to also include full country names, rather than just country codes;

Signed-off-by: Matt Bernhardt <mjbernha@mit.edu>
Merge branch 'master' into abstraction
Merge pull request #25 from matt-bernhardt/master

Abstraction