add bitwise logical operators and broadcast check

AND, OR, NOT and isBroadcast added to IPAddress
getSubnetBroadcastAddress added to IPAddressWithMask with
convenience method isSubnetBroadcastAddress
check for invalid masks in getSubnetBroadcastAddress in IPAWithMask
make logical oper typesafe and remove code duplication
Merge into master from pull request #220:
add bitwise logical operators and broadcast check (https://github.com/floodlight/loxigen/pull/220)