Fix ns-version-index

Forgot to unbox a result
Implement api/ns-resolve
Implement api/ns-resolve