Fixes to URI parsing
Added Object casting and inspection
Improved login handling