Change handler execution.

Attach handlers to specific events. Prevents running
process multiple times on request and makes code
more readable, allowing further expansion.
Added public callback hook.

This can be used to add processing and minifying
to deployment process. Each time the callback URL
is accessed, all assets are processed.