Fix the activity widget in the admin to include data from 'today'

The actvity graph in the admin site used 'today' as the end point, which means
that any data actually generated after midnight were not included. This patch
changes the date range to end on today+1.

Testing Done:
Tested on internal production environment.

Reviewed at https://reviews.reviewboard.org/r/5083/
Make admin activity widget date range parsing a little bit more robust.

It was possible to cause the activity widget in the admin to generate requests
to the server that would generate a 500 response. The issue here was that we
didn't properly sanitize dates unless both the start and end range were
provided.

I've changed it to convert the request parameters to datetimes individually
instead of if they're both necessary, and changed the if/elif/etc block to
verify that the necessary data was provided in request.GET before trying to use
it.

Testing done:
Checked out the admin UI a bit.

Fixes bug 3068.

Reviewed at https://reviews.reviewboard.org/r/5101/
Merge branch 'release-1.7.x'