First iteration of fixing the pom

This is not to be merged Pull-Request for tracking. I started making the pom standalone. There is some ongoing work. Installing and especially site seems to work now.