Still not all code migrated, added appropriate TODO/FIXME comments.
Do not let hotplug script inherit lock FD - if it starts some long running process (like xenstore-watch), it will hold the lock and block other scripts.