Added dgeni for docs
Build before generating docs, Add generating docs to build
Migrate API docs from github wiki to source (based on dgeni)