Unifying Foundations for Physics and Mathematics