Added bower support, reduced events number to three.