Separate CSV and view code, fix #1890: date-range issue.

Meant to be separating CSV and `facility_management` views, as they don't overlap heavily now.  In doing so, I discovered #1890.

Did a bad job separating these, it's all one commit.  But the form should be working now.

Testing:
* Did basic unit testing (making sure form validates, values are present, etc).
* Please run `generaterealdata`, then see that selecting by date changes the data returned.