Rearranged POM files.

added <packaging> to all children.
extracted more values into properties.
Rearranged POM files.

added <packaging> to all children.
extracted more values into properties.