Automatically detect the edition based on the enterprise_key app.

Please review @LukasReschke @DeepDiver1975 @PVince81 @schiesbn 
;-)