Towards quantum mechanics from a theory of experiments