Honestly, I don't bother. I use the level 30 3.46"/76 SK C/32 AA gun on the main armaments with either nothing or torpedos in the 2 sides. The only time that something will really get that close for you to damage it, you'll make better use with a torpedo spread than trying to switch guns and kill it.
I generally assist a battlegroup in north or south and keep to their rear so you'll be safe from BB salvos and at the correct range for striking planes that fly over. Sometimes you'll have to switch battlegroups depending on who needs the most help and you might run into a DD or an SS so you can deal with that if you wish. Another option is to get a sonarman to act as a spotter for your team. I suggest not to bother too much with other roles in the fleet as you are far too small to do any damage in a GB. The longer you stay alive and shoot down planes, the longer the bigger ships can advance and keep the smaller ships off of you.
Don't put AA into your T slots because they will work against your main armaments since you'll be fiddling around with angles. The best for the Emden is the level 30 3.46"/76 SK C/32 AA gun (You can find more information here). How it fires very quickly is to keep setting your Firing setting to Gradual (F4), start firing and then immediately switch to Maximum (F4) and you'll be firing full salvos at twice the speed; thus you'll never need any other AA gun.
Hope this helps