Move bind to backend.

Move the bind operation from the vnode into the backend, and abstract
out the key generation code.