Requirejs output dependencies

This includes code to output dependencies,
but dependencies itself are not yet compiled correctly,
there is only stub implementation.