Changed exception printing to the apps own handler in some places
improved resource lookup
Added connection timeout setting
Many improvements and compatibility fixes