Adding consolelistener.py which is a script used by the web service
to actually execute the commands.
Also fixed exec_cmd so it will run properly for sqlite INSERT
statements.