More WIP in the rewrite:

- basics for platform detection
- lsb and upstart template converted to go text/template