Guess whether XML attributes are bool or int

This also incidentally drops the dependency on lxml
Add a primitive aura system
Simplify XMLCard even further
Completely rewrite the inheritance system