Added module loading support for local clusters.

Frameworks triggering a local cluster (--master=local) now have module loading
support via slave and master flags (--modules).

Review: https://reviews.apache.org/r/26775