[sam] Fixed architecture specific macro digitalPinToTimer, added comment to uninplemented portModeRegister

Fix #1833
removed Xively and Cosm examples
Ethernet: UdpNtpClient.ino now uses DNS to connect to the NTP server
Merge pull request #2319 from cmaglie/ide-1.5.x-sam-portModeRegister

(Arduino Due/SAM) Removed macro digitalPinToTimer and added comment for portModeRegister
Formatter: cursor position is saved when invoking autoformat. Fixes #2293
[sam] Fixed compile error when using math functions

Fixes #2338
Merge remote-tracking branch 'arduino/ide-1.5.x' into HEAD

Conflicts:
	libraries/Ethernet/examples/XivelyClient/XivelyClient.ino
	libraries/Ethernet/examples/XivelyClientString/XivelyClientString.ino
	libraries/GSM/examples/GSMXivelyClient/GSMXivelyClient.ino
	libraries/GSM/examples/GSMXivelyClientString/GSMXivelyClientString.ino
	libraries/WiFi/examples/WiFiXivelyClient/WiFiXivelyClient.ino
	libraries/WiFi/examples/WiFiXivelyClientString/WiFiXivelyClientString.ino