[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.
However I still find it useful if the end goal of the export is to load it in your own decoupled app, therefore you will know the order of the fields.