plugs memory leak on cursor close
adds tests for cursor.close
Merge branch 'next' into 942_cursor_clear

Conflicts:
	drivers/javascript/src/net.coffee