update EF to v6, split solution to projects, add repository layer