History init

The history feature is working well, but I've found it sometimes annoying to have to manually enter some complex commands each time I start up work in a project. These changes support two ways of specifying initial commands for the history.