Support AS2 classes

At least preliminarily, but I think this is a bit better than what we had on master, already.