Refactoring lxc-create script

* moving function to separate file 'functions.sh'
* using source template name as a reference to create new containers.