Bringing code up to date AGAIN, and also switching to C++11 which isn't half bad!
More C++11 goodness with foreach loops, yaaaay
More C++11 goodness, and no more silly HASH_FOREACH bullshit!