Auto-detect whether recommender engines are compressed

This change automatically detects if a recommender engine is compressed (looking for the GZIP magic) and decompresses it if appropriate.