Classical and quantum integrability in dimensions two and three