MVC pattern fixed

Added delegation and data souce protocol,
Added functional for binding color palette and max events count