Preserve scheme when redirecting to blob \ cdn
Fixes bug #576
Fixed tests and merge conflicts
Removed unnecessary GetContext method