Rewrite everything to use libnv.

This again only supports the string type for now.