cleanup and mock compass
increment properly
fix phonegap detection (navigator.compass doesn't exist until deviceready)
add simple line compass with d3