Introduce Network Policy API

closes #438 


k