Fixed broken UnitTest build

Build files were broken for unit test. Seems to difficult to try to kep
qgroundcontrol.pro and qgcunittest.pro in sync with each other. Instead
I made qgcunittest.pro just include qgroundcontrol.pro. This required
some tweaks to allow TARGET to be set from the outside as well as to
leave out main.cc. Also needed to modify qgroundcontrol.pri to use
TARGET instead of hardcoding app name. This way it can build either
qgroundcontrol.pp or qgcunittest.app. At this point only works on osx.
Merge branch 'UnitTestFixes' of https://github.com/DonLakeFlyer/qgroundcontrol into UnitTestFixes

Conflicts:
	qgroundcontrol.pri
Comment change
Fix AutoTest build breaks
Make qgroundcontrol.pri agnostic to app name

Use TARGET instead of hardcoded qgroundcontrol.app name. This allows
this file to build unit test app as well as qgroundcontrol app.
Fixed UnitTest code and bugs found by unit tests
Can't spell
Merge pull request #430 from DonLakeFlyer/UnitTestFixes

Unit Tests would not compile, once they compiled, they didn't work correctly, once working correctly they found a couple bugs