moved coloured square into todoitem and added a protocol and basic support for iCloud