Add support for IP masks

Adds IP masks to OpenFlow patterns. This request should only be merged with an accompanying pull request for Frenetic.