Document authentication, add build rules forc docs.