A function space approach to the foundations of system theory