Fixed the document id mess.

- now returns the whole DocumentID instance after initialization of a document
- now a request accepts a real DocumentID input
- the id property of a DocumentID is now of type String instead of Number
- added aliases to define the id property of the DocumentID
- fixed the use of the returned document handle in the web application

Fixes #37