Copy contrail in-line code to a seperate file. Clean stack.sh/unstack.sh in next step