rest-api: Be a bit more RESTful
rest-api: Be a bit more RESTful

 - Drop all of the container actions and instead use /state for that
   with GET/PUT.
 - Rework files to use GET/PUT.
 - Add shell examples.

Reported-by: William Grant
Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

akshaykarle/lxd,atxwebs/lxd,dvbportal/osx-lxd,Skarlso/lxd,tych0/lxd,rcj4747/lxd,techtonik/lxd,akshaykarle/lxd,jumpstarter-io/lxd,atxwebs/lxd,rcj4747/lxd,jensg-st/lxd,chrisglass/lxd,georghopp/lxd,basvanbeek/lxd,Skarlso/lxd,hallyn/lxd,stgraber/lxd,chrisglass/lxd,achanda/lxd,jsavikko/lxd,rrva/lxd,mikemccracken/lxd,pcdummy/lxd,achanda/lxd,benaryorg/lxd,mjeanson/lxd,rcj4747/lxd,rrva/lxd,Malizor/lxd,dvbportal/osx-lxd,stgraber/lxd,basvanbeek/lxd,hallyn/lxd,lxc/lxd,jumpstarter-io/lxd,atxwebs/lxd,erikmack/lxd,pcdummy/lxd,lxc/lxd,smoser/lxd,hallyn/lxd,stgraber/lxd,tych0/lxd,ollie314/lxd,lxc/lxd,jsavikko/lxd,ericsnowcurrently/lxd,sl1pm4t/lxd,dvbportal/osx-lxd,beni55/lxd,lxc/lxd,pcdummy/lxd,achanda/lxd,Skarlso/lxd,yura-pakhuchiy/lxd,smoser/lxd,hallyn/lxd,mikemccracken/lxd,stgraber/lxd,rrva/lxd,beni55/lxd,smoser/lxd,erikmack/lxd,jsavikko/lxd,sl1pm4t/lxd,mjeanson/lxd,stgraber/lxd,stgraber/lxd,jensg-st/lxd,ollie314/lxd,mikemccracken/lxd,ericsnowcurrently/lxd,techtonik/lxd,chrisglass/lxd,hallyn/lxd,akshaykarle/lxd,jensg-st/lxd,lxc/lxd,stgraber/lxd,ollie314/lxd,jumpstarter-io/lxd,lxc/lxd,techtonik/lxd,Malizor/lxd,yura-pakhuchiy/lxd,hallyn/lxd,sl1pm4t/lxd,Skarlso/lxd,lxc/lxd,dustinkirkland/lxd,georghopp/lxd,ericsnowcurrently/lxd,dustinkirkland/lxd,yura-pakhuchiy/lxd,tych0/lxd,Malizor/lxd,beni55/lxd,dustinkirkland/lxd,basvanbeek/lxd,georghopp/lxd,benaryorg/lxd,erikmack/lxd,mjeanson/lxd,benaryorg/lxd,atxwebs/lxd