move amd-related bits to a new amd object
update createModuleContext signature and refactor some pipeline issues
add more edgecases for joinPaths
lots of fixes to pipeline code