Backported r8168 from trunk.
Removed useless routes.
Makes assertion compatible with ruby1.9.
ruby1.9: macro must accept 2 arguments.
Added method to attachments routes.
Fixed assert call.
Removed boards widcard route.
Removed repositories widcard route.