Configure lxc autostart according https://help.ubuntu.com/12.04/serverguide/lxc.html

By mkobel rewritten by googley
autostart remove bug
import changes from upstream