Fixed errors in net.canarymod.api

Still some things left and not all hooks are added, but
it's a step forward to a working thing.