Changes to @usage documentation for anyStatusSet and allStatusSet routines
K400, new routines anyIOSet and allIOSet.  Used to determine status of IO bits in curIO
Merge branch 'master' of https://github.com/rinstrum/LUA-LIB

# By Pauli (3) and Merrick (1)
# Via Pauli (2) and merrickheley (1)
* 'master' of https://github.com/rinstrum/LUA-LIB:
  Make the success return explicit rather than relying on defaulting.
  Make the UDP discard function work using large chunks of data instead of single character at a time.
  Remove the extra arguments on the 2223 stream call backs.  They aren't present and could mislead. Hanlde the callback variable arguments better by avoiding the depricated arg variable.
  Removed unnecessary whitespace
New PrintCopy example including a simple .RIS file
removed whitespace from ldocUsage examples
K400 Bug fix for the routines used to determine if status or IO bits are set
New function to return string of 1s and 0s to show IO state
K400 BUG FIX:
changed the way sendRegWait works so that it has a local callback function.
This makes the whole system reentrant and removes the problem when event handlers need to read register contents and therefore need to wait for the responses from R420 resulting in out of order poll/response processes.
K400 - check analogue raw value so only cahnges sent to the instrument
K400: support for latest setpoint timing settings etc.
Bug fix with target register address.
New example SETPIO complete with .RIS
8 Outputs, 4 under setpoint control and 4 under Lua control
Demonstrates all types of IO timing control
Merge branch 'master' of https://github.com/rinstrum/LUA-LIB

# By Pauli (5) and Merrick (2)
# Via Merrick
* 'master' of https://github.com/rinstrum/LUA-LIB:
  Changed the examples installer to install everything within the folder recursively and set the permissions
  Added code to replace the token %LATEST% with the version number in the packaged version of the library.
  Work around bug 39 -- the settings data is getting confused when a non-data message arrives and the return from the tonumber call wasn't be checked which lead to the crash.  http://big-gay-al.rinstrumau.local/show_bug.cgi?id=39
  Minor clean up in the posix get time code path.
  Some syntax cleaning and removal of unnecessary function wrappers in the time get routines.
  Remove no longer used function from rinSystem.
  Update timers so they take arguments in seconds not milliseconds as per Bug 40: http://big-gay-al.rinstrumau.local/show_bug.cgi?id=40
Fixed setpIO to use new second based timers
Changd name of setRTCStatus to writeRTCStatus.  This is to establish a convention that get and set functions are local and read and write functions involve messages to/from the R420.
Added saveSettings to setAnalogSource so instrument reinitialised to use the new settings
K400:  New features to manage SETP status along with IO status.
Callbacks are now possible on entire IO or SETP status and also for individual status bits
Improved checking for events triggered before previous handler finished for the same event
rinCON setSerBCallback comments corrected.
Merge pull request #12 from darrenpearson/master

K400 Updates and Bug fixes