Dissociate decoding and displaying functions for MAC.

Second part of several refactoring commits to accomodate new tools.
This refactoring dissociates the decoding and displaying functions in
separates units along with their respectives headers.
Uses a common version message for each tool.

This patch creates a function to display version information common
to each tool.
Use a common commit message for each tool.

This patch creates a function to display commit information common to
each tool.
Fixes a typo.

This patch fixes a typo in the mac header.
Adds a function to parse flags.

The getflg functions parse a string for several flags parameters and
setup these flags accordingly in an array of integer. This is used for
parametring the MAC frame control header within the injector
command line.
Removes the short option for commit.

The commit option was available with a short and a long option.
This patch removes the short option since this option whch is not often
used. This allows to use the short option letter for another more useful
purpose.
Fixes bit banging functions.

The flags parameter in the bit banging functions were not isolated. This
prevented the use of a non-pointer flags_t as argument. This patch fixes
this by isolating the flags parameter.
Adds a generic atoi.

This patch adds a generic atoi function which understand number written
in different bases. This function is used to parse command line
arguments but it may be used for other purposes too. However this
function is optimistic and does not check for any error that may occur
(overflow, invalid symbols) when converting the number.
Adds wsn-sniffer-cli to makefile

(injector part 1)
Adds wsn-injector-cli (main).

(injector part 2)
Removes an unused macro.

The SYMBOLS macro in atoi-gen was unused. This patch removes it.
Adds wsn-injector-cli (main).

(injector part 3)
Adds wsn-injector-cli (main).

(injector part 4)
Adds a function to parse hexadecimal values.

This patch adds a function to ease the parsing of hexadecimal values separated with
different delimiters. In particular this function will be used in the state machine
used to parse hexadecimal MAC addresses.
Change the prototype of the hexadecimal parser.

This changes the prototype of the hexadecimal parser to return a pointer
to the delimiter in the string.
Adds wsn-injector-cli (main).

(injector part 5)
Moves the serial speed parsing function.

The function used to convert a string into a serial speed was defined
directly within the sniffer code. However this function will be used
with the new injector tool. We separate the declaration in the shared
uart unit and header.
Typo
Reports more precises error.

In some cases the error reported by the parse_hex_until() function were
not precise enough. This patch change this and with a custom message
prepended to each error that could arise within this function.
Copy the payload inside the frame structure.

Until now the payload was stored as-is in the mac_frame structure. So
the structure itself still depended on the original data buffer. This
patch adds a copy/free layer for the payload into the frame structure in
to make it fully independant from the original data.