factorize Rest Call
Merge branch 'master' of https://github.com/gplaza/Portero-Rpi.git