catocommon - functions for getting current time in epoch.
authentication routine cleaned up - session_id added to user_session table.

database scripts updated.