Adding enum field to int types that are linked with an enum
MAVGraph: Add option to choose plot bg from active flight mode

Simple little beautification to make it easier to visualise the
effect of changing flight modes.  Only an APM colour map is
implemented at this time, it uses the same colour pallet as
MAVProxy's mavflightview.

At the moment this cannot be specified at the same time as
--xaxis as for that, background vregions don't make much sense.
You would have to track a per-marker mode/colour instead, and
while that's possible, it seems overkill at this stage.
Merge pull request #178 from benizl/flightmode

MAVGraph: Add option to choose plot background colours from active flight mode
pymavlink: added rally point move and remove support
pymavlink: added support for index numbers and remove in mavwp

useful for map manipulation of waypoints
pymavlink: enable moving of fence points
pymavlink: added fence point remove()
pymavlink: support param() method for .bin and .log files

useful in mavextra.py
Plot PX4 flight modes as background colors
mavgraph: add pylab.draw()

apparently this is needed on MacOS, and doesn't seem to do any harm on
Linux, so applied

Thanks to Lorenz for this
Corrected indentation in mavwp.py.
Added __init__.py files for the tools and examples folders.
This means that  can now be run if pymavlink is on the system path.
Tools: Added CSV and JSON output to mavlogdump.py.
Updated .gitignore.
Python decoder. Added array support.

Now generated python code can successfully decode message containing
array(s) of standard C type. One drawback - only char[] fields decode as
python string, but uint8_t[] decode as python list. As I know there are no
mixing of uint8_t/char in common.xml so it is not a problem. Pull
request also contain tests for array handling. I can not find where
to place pythonic tests so I have placed them in pymavlink/tools dir.
Merge pull request #128 from johnboiles/johnb_enum

Adding optional enum attribute to fields that represent an enum
pymavlink: cope with bad data at and of log
pymavlink: fixed mode mapping for copter/rover
pymavlink: fixed waypoint saving

last indentation fix broke the logic
pymavlink: fixed mavflighttime for DF logs