add long paths support for component element insertion

This PR fixes #124 and #33.

For #124 it adds the long paths support for component element insertions (same as for sub-templates and components).

For #33 it adds a *isEmpty* property to the default event handler callback to let the controller know if a callback has been set..