Implement notes model and API