Yep, read the official midi developers book with all the specs first(they make you pay for it, ridiculous).
As for using it as an amp switcher, all you need to do is pick out a decent chip that will do everything you need. Take a look at schematics from amps like the Framus Cobra, it gives you a good idea of how the chips need to be set up for midi.
Other than that, it's all about how you program it. It's a little easier in an amp, because you just need to worry about midi in (no need to worry about midi out). There are some good write ups about the programming on a bunch of forums I have saved, I'll have to dig them out and post them for you. Basically the chip in the amp stores amp presets that you save, and when the foot controller sends it a message for that specific note, the amp will call up the settings and switch the proper relays/LDRs/ssr's, whatever. It's kinda nice since the micro-controller in the amp takes the place of those complex switching logic gates, and leaves you to be able to program it in code.
When I was messing with it last, I ran into issues with the chip I chose not being fast enough to clock the midi coming in. So make sure you read up on that area, because it needs to be dead on or else it won't work.