Implementation of API.

Conflicts:
	index.coffee
	models/Document.coffee
	package.json
Added map() to HTML wrapper API.
Extended test set.
Updated README.md