added support for Foundation 5.
Not all foundation framework features are implemented but there is parity with the current support for foundation 4.