Do not merge - Introduce Network Policy API

Still need to add javadoc etc but starting the review.

closes #438