Added APU.cpp and APU.h

- Transfered and fixed audio test code to APU.cpp and APU.h