Broadcast address patch and interface selection fix
Merged scripts directory into model to clean up root a little
Imported trex regexp library from http://tiny-rex.sourceforge.net/
First patch for regular expression support in CZMQ

- class will be zrex
- I'm using T-rex, a tiny regexp library imported into foreign/trex
- main use case for zrex is parsing config files and certificates
- fixed some warnings in the T-rex code but otherwise left it as-is
Finished first draft of zrex

- collects matching sequences
- provides these to caller
Restored all selftests
Broadcast address patch and interface selection fix

On Ubunutu 11.10 Server the broadcast address returned by getifaddrs() is
the same as the interface address. This patch derives the broadcast address
from the interface address and the netmask if this occurs.

Also fixed bug that would potentially choose the wireless interface over
the specified interface if it was encountered first.
Added zctx_new_from_zmq_ctx
Rename zctx_new_from_zmq_ctx to zctx_shadow_zmq_ctx
Added missing CZMQ_EXPORT to new function
Fixed unitialized variable warning
Merge pull request #269 from ulikoehler/zctx_new_from

Add function to create zctx shadow from plain ZMQ context
Merge pull request #268 from hintjens/master

Adding regular expression support (zrex)
Added silent rules to build process
Merge pull request #270 from shubred1/master

zbeacon broadcast address patch and interface selection fix
Generating all project files from single XML model now

- using same GSL approach as for socket options
- everything is in model/ directory, see model/README.txt
- support added for Android, MingW32, MSVC, CMake
- quite possibly I've damaged MSVC project files
Removed assert from zbeacon_test() that caused failure on TravisCI machine
Merge pull request #272 from shubred1/master

Removed assert from zbeacon_test() that caused failure on TravisCI machine
﻿make zbeacon interface selection more robust

* Bug fix: s_get_interface() was checking for NULL pointer instead
  of empty string to determine if the interface was set.

* If the interface isn't set then the source address and thus the
  hostname wasn't being populated. Now if there is only one IP
  address on the it is set as source address; otherwise it is set
  to INADDR_ANY.

* Commented out s_wireless_nic() function and removed call to it as
  it was not doing anything. Previous to pull request #264 it would
  "select" the wireless interface or the specified interface,
  whichever was encountered first (bug). But right after that the
  broadcast address was being hard coded to INADDR_BROADCAST which
  nullified the selected address/interface.
Added work-around for missing `strndup()` on Windows with MS runtime.