code cleaning!

separated out common code and removed all refs to contours (except
wiki_url in bl_info of __init__).

note: had to move code from polystrips_ui to __init__ to get preferences/properties to work correctly.