expose additional container and compose functionality, allow setting the mine function (#14)

* extend container and compose functionality, make compose file idiomatic, allow setting mine function

* "network" backward compatibility

* conformed to naming convention and changed file mode

* fixed Jinja so that docker.swarm can render even if swarm master ip is not available from the mine

* renamed grain_function to mine_function for more accurate description
6 files changed