Moved app.c to using the Linux Kernel GPIO sysfs interface.

This removes the last dependency on the Libero auto-generated drivers which
are not released under an open source compatible license.  It's also cleaner
to use Linux kernel mechanisms directly.