Changed to better support asynchronous module definition
Unfortunately build is broken, seems to have some issues parsing.
Corrected error where triggers and bindings were not applied to foreach blocks