Merge pull request #4020 from cinquo/master

REST config updated to external configuration
Adding new resource as layer to handle databases interactions