Use mod_rewrite instead of error handlers to redirect to cgimap

Using rewrites is a simpler method then relying on 404 errors and redirecting
Rewrite ways_from_nodes to be faster
Change cgimap error responses to agree with rails port
Make select_(nodes|ways|relations) return ints

This saves calling num_(nodes|ways|relations) if all you've done is the select_ call
Use return value from select_(node|way|relation) for single- and multi-object calls

This saves an index lookup against current_(nodes|ways|relations) for single-object calls and makes it easier for databases without history to handle missing objects
Merge pull request #26 from pnorman/error_report

Change cgimap error responses to agree with rails port
Merge pull request #27 from pnorman/node_visible

Refactor node visibility checks
Merge branch 'master' into gsoc13
Make select_(ways_nodes_relations) return ints for pgsnapshot too
Accept empty responses in tests

cgimap and the rails port return an empty response for some error
replies (e.g. 404 and 410). Make the test framework accept this.

If a test is expecting content, the nature of the content is tested
in the checks.

Fixes issues introduced in zerebubuth/openstreetmap-cgimap#26
Merge pull request #21 from pnorman/lighttpd_rewrite

Use mod_rewrite instead of error handlers to redirect to cgimap
Merge pull request #29 from pnorman/empty_error_test

Accept empty responses in tests
Add missing pgsnapshot.cpp files
Don't output lat/lon for deleted nodes

The API changed during the redaction to not output lat/lon for deleted nodes.

This changes cgimap to catch up with that change.

Fixes #30
Merge branch 'master' into gsoc13
Merge pull request #31 from pnorman/deleted_coord

Don't output lat/lon for deleted nodes
Merge branch 'master' into gsoc13
Bumped version to 0.2.0 for release.
Merge branch 'master' into gsoc13
Merge branch 'gsoc13' into linestring

Conflicts:
	src/backend/pgsnapshot/snapshot_selection.cpp