create html document + begin error checking in create (todo: display errors)

Signed-off-by: Thibaud Arnault <thyb@oauth.io>