Re-implement basic identity API for v0.2.0.