Fixed Wanings
Support for debugging and logging macros
 spark_wireing.h no exports it's functions as  extern "C" - this is
useful for debbuging interface.
Fixed bug where sparkSocket is 0 at start up yet not opened and close
was called on it
Added isSocketClosed as a wrapper around get_socket_active_status to
avoind io on closed sockets
 
Added wirtes before close to reduce close time.
 see
http://e2e.ti.com/support/low_power_rf/f/851/p/295944/1062342.aspx#1062342
 and
 http://e2e.ti.com/support/low_power_rf/f/851/p/304212/1062330.aspx#1062330

added debugging
Fixed debu message
Fixed warning
Test for CFOD - Bad
Added Panic Fault Handelers
Good Test
Good Usage