Added wrapAMD option

For more flexible use of AMD output this option allows user to pass a
function for wrapping the output instead of using the default.