Fixed ordering of time periods in the view so that logs are ordered by date rather than lexographically.  Fixed defect in log deletion so that deleting an open log updates the user's clocked_in status.
Edited to prevent automatic filling of end time when editing open logs.