added apply/safeapply utilities and asyncSubmit, and renamed main.js to angils.js