Whole raft of updates.

Now supports most of the startup script stuff, minus the LINC terminal.  Again
still largely porting from the occam-pi design, which (to Erlang and occam-pi's
credit) is largely unchanged.