some biarc work
moved tests to test dir
minimize support using uglifyjs