Prevent at rules disappearing from stylesheet

e.g. @keyframes
Add missing xtend dependency.
Ensure imports are handled before other rules.
Add simple import test.