Learning Deep Controllable And Structured Representations For Image Synthesis, Structure Prediction And Beyond