Create a branch to play around with some ideas for integrating OpenStreetBugs into the rails_port
An initial (incomplete) "proof of concept" integration of an OpenStreetBugs interface into the rails port

This is a (start of a) reimplementation of the api at http://github.com/emka/openstreetbugs/tree/master/api/0.1/
into rails

The client side code is taken from http://wiki.openstreetmap.org/wiki/OpenStreetBugs/New_Client

This is ment as a mockup to perhaps use as a basis to further discuss how best to integrate a map bug reporting system

It currently uses (more or less) the openstreetbugs api specification. But this api feels rather inconsistent with the
rest of the rails_port api, so depending on discussions might still need some significant changes.
Split comment field out of map bugs table

Rather than have all comments in a single text field, have each comment in its own entry
and only combine them back on output
Allow for different formats to the getBugs call

This is a rudimentary initial version of a GPX and a rss
format for looking at bugs in an area.
Fixed small bug where clicking on the "Report a Problem" link would directly create a bug-report
support json format in getBugs, add a limit and name parameter
Change comment type from varchar(255) to text

Some bug comments in the current OSB have more than 255 characters,
so the format needs to be extended to accomodate
Escape javascript in output
Record time of closure of a bug.
Add a browse page for bugs
try and make the OpenStreetBugs API a bit more consistent with the rest of the API
back out the registration of the gpx mime type, as it didn't seem work
Fixup some of the rss output and geocode bugs using nominatim
List bugs submited or commented on by user
Fixup some error handling in map bugs
Add some rudimentary initial tests for the map bugs api
Merge -r 20198:20540 from trunc into openstreetbugs branch
Don't limit get map_bugs to a small Area, by disabling the quadtile index for those searches

The volumn of bugs seem small enough to get away with normal or GiST indexes (not included yet)

Also includes some other fixes
Convert openstreetbugs javascript to new style api
minor improvement to the map_bugs tests