On Space and Time: Causality, quantum theory and cosmology