[SPARK-1406] Mllib pmml model export 

See PDF attached to the JIRA issue 1406.

The contribution is my original work and I license the work to the project under the project's open source license.
I guess they don't need to be, I will review var/val usage.