1.7 implementation of version-specific things + misc 1.7 fixes
 * Compiles, still TODO: update ASM plugin