CRM-12716 - Limit the number of chars that can be entered in Notes custom fields

Complete implementation, including database upgrade.