reorganized some redoundant code
add support to static rules validation. #83
Merge branch 'refactor' of github.com:geosolutions-it/fra2015 into refactor