Add support for NSSecureCoding

While implementing a sandboxed XPC service for my XMPPManager I realized it would be very useful to have support for NSSecureCoding for easy transport across the process boundary. Because secure coding requires iOS 6.0+ and Mac OS 10.8+, I implemented it in a way that should be backwards compatible for people who are still supporting older operating systems.