Bootstrap nrtm client

Fixes for #265, #267 Please review first.