Implementation of the MVC pattern for contacts plugin

Signed-off-by: Wadjetz <egor.neon@gmail.com>