EXP-165. Make all model lifecycle phases optional.

This commit refactors the extract and score environments in the
model lifecycle to be optional. (The prepare and train phases
are already optional.)

Reviewed by: kiyan