added initial tests for the amd optimiser
added more dependencies to ensure that dependency names are returned of defined modules
when creating an ast of the javascript code make sure that defines called from within functions are ignored