Various fixes/improvements to HLE of 3DS services

Please review for merge to master. Most of the changes have to do with a much better implementation of calling GSP commands.