Biorefineries for Sustainable Chemical Synthesis and Fluorescent Sensors as Tools for Investigating Biological Processes