netteForms.js now dispatch several custom events

Javascript for Nette forms dispatch custom events which we can handle and process.
Solution is based on ECMA3. IE8 and old webkit will silently ignore them.

example using jQuery:

    $(document).bind(Nette.EventType.INVALID_CONTROL, function(e) { 
        e.preventDefault(); alert(e.originalEvent.detail.message + '  - my custom handler'); 
    });