PatrikE code integration phase 2

babayaga.cpp patched. Logic needs verifications because of large amount
of changes in GPS code.