Fixes to redirection
Merge branch 'milestone5' of github.com:WSO2Mobile/mdm into milestone5