Elevating Commodity Polymers to Advanced Applications in Polymer Photonics and Polymer-Derived Porous Materials