Add global logging
Clean up startup a bit
Add Readline / History support