Fixes to Login and Batch Pages

Added error message for unauthenticated logins with proper redirects to
the login page (instead of just throwing exceptions). Added column for
is_finished to batch database table and utilize it and the updated_at
column to show a list of active and recently finished batches in the
batches page.