Reorganized, added Jasmine tests for GigapanUtils, fixed stupid bug in GigapanUtils