Classes runtime (part 1)

This uses a runtime function to set up the the constructor and its
prototype.