Mathematical Models for a Theory of Money and Financial Institutions