Replacing debug prints with a callback function.

Replacing debug print's with a user registered callback function.
This makes the config file significantly cleaner.
This commit should work, but still needs some testing.
Doxygen will also need checked.
Adding shutdown function.

Still needs tested + documented.
Changes for SPI bus locking appear to work.

* Added new WRITE states - REQUEST and PERMITTED so that the CC3000 SPI select
and unselect calls are called from the same thread - otherwise by the nature
of mutex ownership it won't work.
* Replaced binary semaphore with counting semaphore. Looking at it, it would
seem there was the potential for a binary semaphore to miss a signal.
* Added a function to permit some state change debugging.

Still needs prolonged testing and documentation updates.
Making print callback a mandatory parameter to init.

It can be set to anything when print enable is FALSE.
Adding documentation for shutdown function.
Removing binary semaphores altogether.
Merge branch 'fixing_debug_print' into dev
Merge branch 'add_shutdown' into dev

Conflicts:
	api/cc3000_chibios_api.h
Updated documentation, removed unused variable.
Merge branch 'fix_spi_dma_bus' into dev

Conflicts:
	src/cc3000_spi.c
Cleaning up some define checks, removing dead code.

The defines being checked were mandatory.
Minor tidying in config file.

Debug print is something that is likely to be enabled.
Shutdown was not working correctly.

The pause loop could prevent the thread from exiting.

Calling wlan_stop() is risky if it has been called previously. The EXT driver
could be stopped by a prior call, then an EXT api function called. This
problem was raised by the ChibiOS debug in extChannelDisable()
Some configuration changes.

Reduced IRQ handling thread size.
Split port config for chip select away from SPI.
Quick update to examples.

Updated macros and init function.
Removed copies of config since they were not more informative than the
default config.
N.B. Modified examples haven't been tested.
Merge branch 'dev'
Updating version number.