Many optimizations

Using caching to get IDs and endpoint permissions
Connection pooling
Upgrade to logback 1.1.2