Performance enhancements

Performance
1. NaiveUserAgent and ITextUserAgent should resolve URIs only when images are not in the image cache.
2. Synchronization in Configuration.getInstance removed and instance is instantiated in the member variable.