Add fix for galera meta-role handle.
Split resources as a functions and add check reference node mysql service start.
Merge pull request #12 from alff/master

Small refactor