New API docs using literate coffeescript.
Review of docs still required.