Replace lib copying with syncing.
Use angularAMD for lazy dependency loading.