Election Status Changes Based On Time

Added hooks so that every time a new page is entered, it checks with the
time in case any election statuses needs to change.