OFStateManager: send bad_request/eperm instead of hello_failed

A little better but not much.
OFStateManager: add minimal VLAN ID validation
indigo: add error handling comments to stats interfaces

The implementations should just leave all the counters with the default
"unsupported" value in case of error.
OFStateManager: factor out loci object truncation

This should eventually be moved to LOCI.