Click functions

Fixes #517 -- nodeClick and edgeClick now accept custom callbacks in the conf.