Added Authorization http header check to incoming http requests.
Added journal settings flag to save events into event journal.
Added ev_journal settings parameter.
Changed test to incorporate new ev_journal flag settings.
minor change.
Added trim function.
minor changes.