initial commit of multipart support plus polishes

done for [AGIOS-229](https://issues.jboss.org/browse/AGIOS-229),  [AGIOS-264](https://issues.jboss.org/browse/AGIOS-264)