Add legend insertion hook

Writing a plugin that wants to execute as soon as the legend has been inserted. Added a hook!

A pull request containing this hook has also been made at https://github.com/flot/flot/pull/848 by jamesinc.