64-bit and other updates

Once again, just trying to do something small like build this as 64-bit turns into a big project. :-)

See the commits for what's changed.

It looks like the "Restrictions" feature was never implemented (it's the same in the current version). I've cleaned it up a bit (so it won't even be enabled for most events) and made a note of it in the documentation.