Fixed gps_hasFix blocking and some other minor hiccups.

Added trigger.h and trigger.c to handle trigger enable/disable and
interrupt enabling/disabling.