Fixed endstop checking for non-inverting endstops and cleaned code

Added a line to Configuration.h to force DISABLE_MAX_ENSTOPS when COREXY
option is enabled. Max enstop checking must be disabled for COREXY
because of incompatibility with endstop checking routine in stepper.cpp