[Interface] Support ifup/ifdown

We can only enable monitor mode if the interface is down. Implement
ifUp()/ifDown() functions.
Also try to preserve the up/down state of the interface when we shut
down.