Improve support for styles by a large margin.
Add support for resolving styles from parent classes as well