Write a lot of code

Commence with implementing libnub in all its glory.