More code cleanup - split rosette logic from the angular controller.

Added code to eliminate duplicate vertices, by rounding to the nearest pixel and by callng _.uniq correctly.