Fixing release build, switching to JSDoc for docs.

It looks like I need to massage the comments a bit for it to work. I'll probably only bother documenting core and generic interfaces this way.