Compatibility with ExtJS v. 5.0.0

This is a work in progress PR and it is not yet ready for reviewing or merging.