Fixed issues:
* issue because of which socket tried to write data outside of buffer bounds
* copied library into demo projects
* updated library information (debug output in console)
added test
Fixed issues:
* issue because of which PubNub client tried to use history request as message request and tried to access fields which doesn't exist
* copied library into demo projects
* updated library information (debug output in console)
Merge branch 'hotfix-t221' into develop

Conflicts:
	cocoa/HOWTO/ClientSidePresence/PubNubMacOSTestApplication/libs/PubNub/Core/PubNub.m
	cocoa/HOWTO/SimpleSubscribe/PubNubMacOSTestApplication/libs/PubNub/Core/PubNub.m
	cocoa/PubNubMacOSTestApplication/PubNubMacOSTestApplication/libs/PubNub/Core/PubNub.m
	iOS/HOWTO/APNSVideo/demo9/demo9/libs/PubNub/Core/PubNub.m
	iOS/HOWTO/CallsWithoutBlocks/CallsWithoutBlocks/libs/PubNub/Core/PubNub.m
	iOS/HOWTO/ClientSidePresence/PubNubDemo/libs/PubNub/Core/PubNub.m
	iOS/HOWTO/HelloWorld/pubnubDemoExample/libs/PubNub/Core/PubNub.m
	iOS/HOWTO/SimpleSubscribe/PubNubDemo/libs/PubNub/Core/PubNub.m
	iOS/HOWTO/ULSMethods/ULSMethods/libs/PubNub/Core/PubNub.m
	iOS/iPadDemoApp/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/ConnectionIssues/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/ConnectionIssues1/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/ConnectionResume/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/IdleTimeout/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/JSONAbsent/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/JSONPresent/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/PubNubTestBackground/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/PubNubTestBackgroundTime/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/Subscription/pubnubBackground/libs/PubNub/Core/PubNub.m
	iOS/tests/ThreadBlocked/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/iOSUnitTests/pubnub.xcodeproj/project.pbxproj
	iOS/tests/iOSUnitTests/pubnub/libs/PubNub/Core/PubNub.m
	iOS/tests/pubnubBackground/pubnubBackground/libs/PubNub/Core/PubNub.m
Merge branch 'fix-t241' into develop