Fixed captured photo rotation anf controls state handling in 'setprofile' page
Merge branch 'master' of https://github.com/wujigrid/xin