HTML code is downloaded with data bug fix, and some other nice thing to have.

This pull request changes:
Fixes a bug when you get some html code when using client.
Adds feature: if you not enter title, it gonna equal "Untitled". (note: It's still stored as "" in database)
Lua table returned by api.php?type=get now have id. (just because JSON variant have one)