Compile against IDEA 14. Removed some deprecation warnings.
Removed more deprecations.