initial application framework taken from IPython. Log file configuration still missing.