Move the ifdown/ifup logic to the interface definition file

This is a proposed fix for https://bugs.launchpad.net/juju-core/+bug/1341524 , which is a specific issue caused by the 'ifdown interface' performed on the injected cloud-init, this change was introduced in favor of the previous 'service networking restart' as you can see performing a git diff -r 411dbff^! . This change was made because that command were killing dbus on the local provider.

So, my proposal is that instead of forcing the ifdown of the interface, we can use the network interface configuration to pass a set of pre-up command that brings the bridge and the associated interface up after configure it.

Please let me know any observation.

Signed-off-by: Jorge Niedbalski R <niedbalski@gmail.com>
I don't think this is correct,

The templates are constants in our code, so they should be parsed on startup with something like `template.MustParse`