Miguel/plugin refactor

From our discussion in #87, I think we might want to use `_.bind` here. Also, same for line 23.