Distributed Control Methods and Cyber Security Issues in Microgrids