Added logging, .gitignore, changed API and updated server.

* Logging, server creates log dir if needed.

* .gitignore for img, log and image files.

* Updates API to use /img/project/filename and server as well.
Added TODO and moved API docs in doc dir