switched faye client to use AMD
update index.tmpl & build.js