Added API key management :)

Hi,
I've added key management to API, and documentation page for this cool thing :D.
Tested only "keys list" and "get key", so please test the rest and tell me about errors :).
Also, I've added comments to rest.js, because I had a little mindfuck when I saw this D:

Hope, that this will be useful, please merge :)