Add dynamic theme based on current server, database or user used for the connection

Based on Julien Rouhaud patch.
Merge branch 'master' into dyn_themes