Add async operations framework

As a side effect, this commit also siginficantly reduces the response parsing
overhead in the client.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Add a 404 catch-all with our response

In addition to setting the 404 error code in the header, we need to also
respond with our json-style error messages reporting a 404.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Add /1.0/containers/<name> to rest api

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #77 from stgraber/master

rest-api: Be a bit more RESTful
fix typo

Signed-off-by: Shuai Zhang <zs.broccoli@gmail.com>
Switch the operation url format back

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Use ~/.config/lxc as the config directory everywhere

Closes #74

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
test: don't do a shallow fetch for signoff check

If the user's PR doesn't have the current lxc/master commit in its history,
this check fails miserably since the shallow fetch won't have whatever patch
their branch is based on. We should instead fetch all the history, so a branch
from any commit checks correctly.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #69 from tych0/operation-ops

Operation ops
Merge pull request #78 from shuai-z/fix-typo

fix typo
Merge pull request #80 from tych0/config-dir

Use ~/.config/lxc as the config directory everywhere
s/ping/finger

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #81 from stgraber/master

Use sha256 instead of sha1 for the certificate hash
Merge pull request #82 from tych0/rename-ping

s/ping/finger
specs: Replace shell by exec (more generic)

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>