Added "0install slave" subcommand

This makes it possible to control 0install using a JSON API