Convex Duality Approach to the Optimal Control of Diffusions