temp commit
more changes based on @veged comments

new sections:

    - delegated-events
    - init-ajax
    - init-wave

structural changes:

    - events go before states
    - init section rearranged

assorted smaller fixes