Density Functional Theory of Polymer Structure and Conformations