Implement `lxc snapshot` and the corresponding API

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>