Use Capistrano in the bundle
Add 404 for invalid postcode on redirect