Add amd-loader support and bower dependencies