Add support for secure tunnel, URI parameters
Fix simple warnings

Organize imports
Obsolete APIs
Generic types
etc.