Adding documentation

This documentation is largely harvested from the old haxelib docs (updated where necessary) with bits pulled from @jgranick's more recent blog post.