Move the MLP specific code in the spark library into a submodule.