Added .gitignore file
Some refactoring on the lxc_net function.