Devel

This is something that I believe solves https://github.com/foosel/OctoPrint/issues/124

There is a new endpoint at 
octoprint/api/load
taking
apikey - from settings
print - true, if you want it to directly print
file - gcode file to upload/load and maybe print

e.g.
curl "http://192.168.0.7:5000/api/load?apikey=D96FA6A216CB44F78705D4506689D0EC" -F "file=@test.gcode"