Added support for bower

Clone of #332