Rotate Log Files Daily; Change JSON Redirect

Log Rotation: The log files are now configured to be rotated once per
day, with the date appended to the end of the filename. The .gitignore
file has been updated to ignore these new files.

require_login: This method has been changed to no longer redirect
requests that specify application/json as the only accepted MIME type.
In this case, we will respond with the same flash message as before. If
we need to, we can include the URL of the login page as a field in our
response.