Changed Gemfile
Added gem CanCan- authentication system. Added rules for roles: admin; moderator; author; guest.