Merged Oracle support with Latest Master

Really hoping for a merge soon since we cannot deploy our internal Cloud Foundry deployment until this is merged into master.  It will be difficult and messy for us to continue patching oracle migrations on a branch in a way compatible with master.

This pull request brings the oracle branch up to date with master.

I broke my non trivial merge change out into a separate commit from the merges to simplify review.

I had to fix another couple of oracle in compatible migration changes and a small case where the :apps unique validation didn't work with the lower() way of doing case insensitivity.