Draft implementation of a query class.

Test not passing yet.
Get query tests to pass any old funky way.
Factor post queries into a separate class.
Emphasize testing.
Clean up searchable types output.

Update Issue 659
I'm still not clear what exactly is going wrong, but curious if this
update changes things at all.
Dry out object location geo query code.
remove workaround for bug that has been fixed
add distance field checks
Deduce object name from table name by default.

Update Issue 639
Status: Implemented
There is now a WP_Query variable that enables post queries like these:

$nv_query = new WP_Query( array(
	'posts_per_page' => -1,
	'geo_mashup_query' => array(
		'admin_code' => 'NV',
	)
) );

$zip_query = new WP_Query( array(
	'posts_per_page' => -1,
	'geo_mashup_query' => array(
		'postal_code' => '96161',
	),
) );

$radius_query = new WP_Query( array(
	'posts_per_page' => -1,
	'geo_mashup_query' => array(
		'near_lat' => 39,
		'near_lng' => -120,
		'radius_km' => 50,
	),
) );
																					) );
Queries can be constructed for other tables using the GM_Location_Query object. An example for users:

$location_query = new GM_Location_Query( array(
	'minlat' => $nv_location->lat - 1,
	'maxlat' => $nv_location->lat + 120,
	'minlon' => $nv_location->lng - 1,
	'maxlon' => $nv_location->lng + 1,
) );

list( $cols, $join, $where, $groupby ) = $location_query->get_sql( $wpdb->users, 'ID' );

$sql = "SELECT {$wherepdb->users}.ID
FROM {$wpdb->users}{$join}
WHERE 1=1{$where}
";
Include map attributes in iframe URLs again.

This should allow recovery from unrecoverable transients, but may also
revive issue 404. To reduce that impact, we shorten long object_id lists.

Update Issue 425
Status: Implemented
Labels: Milestone-1.7

I'm hoping this code targeted for the 1.7 release will handle transient
failures more robustly.
Add methods to query current term and line visibility.

Update Issue 645
Status: Implemented
Add identifying term info to API actions for lines.

Update Issue 647
Status: Implemented
Substitute dcterms for DC namespace for HTML5 compatibility.

Update Issue 666
Status: Implemented

Giving dcterms a try - feel free to chime in if you find something
better!
Use esc_sql() instead of deprecated $wpdb->escape().
Fixes #4.
Add Travis CI config.
Move PHPUnit configuration to root.
Use global WP tests installation.
Add ant build
Fix indent
Bump version to 1.7-beta1.