Solved bugs: http://forum.ionicframework.com/t/error-adding-plugin/11782 and http://stackoverflow.com/questions/26583566/error-using-cordova-plugin