Classical and quantum theories of spin