Added CLI params and Event Logging

Added the "/lastsearch" command line parameter and the ability to log
messages to the Application Event Log