Split into package & command line tool.

Started YAML config for defining apps.