Fixed up some NPEs when a code URL is invalid.
Updated development.rb to show our custom error pages in development, not just production.