refactor embed js
add filter to open links in new window
move some stuff around
make contributions polymorphic and stuff