One of the most important things to learn about flash photography is how light works. To that end, I tend not to recommend going with a dedicated P-TTL/TTL flash as the first one in your bag, unless all you intend to do is snapshots. (There is absolutely nothing wrong with being a snapshot photographer, by the way!)
Both the AF360FGZ and AF540FGZ are damn good flashes. The swivel on the 540 is definitely a big plus. The question is do
you want to invest $300+ right now towards this end of your photography.
If you're interested in understanding flash beyond attaching it to the hot shoe and turning it on there are tons of "entry level" options in flash both with and without swivel that won't break the bank. The Pentax AF280T is a good dependable flash with 270deg swivel and can be picked up on the used market for under $100. For more power I used to be totally in the Vivitar 285HV camp because it is a workhorse (no swivel), but there's a new flash on the scene that shows great promise
LumoPro LP120 Manual Flash. Dave Hobby @ strobist.com just did
a review of it here. I have a pair of 285HVs in addition to my AF540FGZ, and I'm considering upgrading my 285s to a pair of LP120s later this year.