SPARK-4375. no longer require -Pscala-2.10 and place external modules behind profiles

It seems like the winds might have moved away from this approach, but wanted to post the PR anyway because I got it working and to show what it would look like.
could you add this to binary releases also (below in this script).