Added NS_REQUIRES_NIL_TERMINATION, NS_FORMAT_FUNCTION and NS_FORMAT_ARGUMENT macros where is is needed.
Fixed a lot of format warnings/bugs due to this.