diff --git a/app/assets/javascripts/issues.js b/app/assets/javascripts/issues.js
index 69ed416107af4519056814013da516bb5390d677..49936e3f0ee1b08f8a5c4d028690e53ffc571353 100644
--- a/app/assets/javascripts/issues.js
+++ b/app/assets/javascripts/issues.js
@@ -51,7 +51,6 @@ function initIssuesSearch() {
       if (terms.length >= 2 || terms.length == 0) {
         $.get(href, { 'f': status, 'terms': terms, 'milestone_id': milestone_id }, function(response) {
           $('#issues-table').html(response);
-          setSortable();
         });
       }
     }
@@ -68,7 +67,6 @@ function initIssuesSearch() {
  */
 function issuesPage(){ 
   initIssuesSearch();
-  setSortable();
   $("#label_name").chosen();
   $("#assignee_id").chosen();
   $("#milestone_id").chosen();
diff --git a/app/assets/stylesheets/gitlab_bootstrap.scss b/app/assets/stylesheets/gitlab_bootstrap.scss
index 8c7d6989cd070c7cae31ef01392b2e2200fc1d40..fa8d544e1e1bec3a43aeced6a08e25fda6012396 100644
--- a/app/assets/stylesheets/gitlab_bootstrap.scss
+++ b/app/assets/stylesheets/gitlab_bootstrap.scss
@@ -201,6 +201,7 @@ a:focus {
 .cred { color:#D12F19; }
 .cgreen { color:#44aa22; }
 .cblack { color:#111; }
+.cdark { color:#444 }
 .cwhite { color:#fff !important }
 
 /** COMMON STYLES **/
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 37b442bce71f079c7e9f505d3d0b304b56fc4e27..ee738b4c580db1b414386bc48be3ba8bcef3af8c 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -2,8 +2,9 @@ class Notify < ActionMailer::Base
   include Resque::Mailer
   add_template_helper ApplicationHelper
 
-  default_url_options[:host] = Gitlab.config.web_host
+  default_url_options[:host]     = Gitlab.config.web_host
   default_url_options[:protocol] = Gitlab.config.web_protocol
+  default_url_options[:port]     = Gitlab.config.web_port
 
   default from: Gitlab.config.email_from
 
diff --git a/app/models/project.rb b/app/models/project.rb
index 7cbc8928c606f87355aeb6fbde7b295d9ff78dac..cfdaa3f9c72561afe6a3a8b6a0539def6809d91d 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -13,7 +13,7 @@ class Project < ActiveRecord::Base
   has_many :users,          :through => :users_projects
   has_many :events,         :dependent => :destroy
   has_many :merge_requests, :dependent => :destroy
-  has_many :issues,         :dependent => :destroy, :order => "closed, position"
+  has_many :issues,         :dependent => :destroy, :order => "closed, created_at DESC"
   has_many :milestones,     :dependent => :destroy
   has_many :users_projects, :dependent => :destroy
   has_many :notes,          :dependent => :destroy
diff --git a/app/views/issues/_show.html.haml b/app/views/issues/_show.html.haml
index 797d2387e31c478e75cbff848d827c354b6c47f3..7488032f92af2722a4f850286d8ae7a82bb7b47b 100644
--- a/app/views/issues/_show.html.haml
+++ b/app/views/issues/_show.html.haml
@@ -29,6 +29,7 @@
     %p.row_title= truncate(issue.title, :length => 100)
 
   %span.update-author
+    %small.cdark= "##{issue.id}"
     - if issue.assignee
       assigned to #{issue.assignee_name}
     - else
diff --git a/app/views/issues/index.html.haml b/app/views/issues/index.html.haml
index a8d0e9ca5af0dbbdd444a886ec3f21bc2b74e806..7328fa88812ff9f87d17bffb691921333bd41051 100644
--- a/app/views/issues/index.html.haml
+++ b/app/views/issues/index.html.haml
@@ -46,24 +46,3 @@
   $(function(){
     issuesPage();
   })
-
-  function setSortable(){
-    $('#issues-table').sortable({
-      axis: 'y',
-      dropOnEmpty: false,
-      handle: '.avatar',
-      items: 'li',
-      opacity: 0.4,
-      scroll: true,
-      update: function(){
-        $.ajax({
-        type: 'post',
-        data: $('#issues-table').sortable('serialize'),
-        dataType: 'script',
-        complete: function(request){
-          $('#issues-table').effect('highlight');
-        },
-        url: "#{sort_project_issues_path(@project)}"})
-        }
-      });
-  }
diff --git a/app/views/issues/index.js.haml b/app/views/issues/index.js.haml
index a534cfbf2341c5a02cc642ccff5eda086b708627..48d7f582be21d701aa46c48a08119ed65e05b1c1 100644
--- a/app/views/issues/index.js.haml
+++ b/app/views/issues/index.js.haml
@@ -1,3 +1,2 @@
 :plain
   $('#issues-table').html("#{escape_javascript(render('issues'))}");
-  setSortable();
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb
index 7142047d9b307941ca218c0a813f816e249649b3..a3b9ddd02a0362b5d8bd77ff1af2cccfae47389d 100644
--- a/config/initializers/1_settings.rb
+++ b/config/initializers/1_settings.rb
@@ -3,7 +3,7 @@ class Settings < Settingslogic
 
   class << self
     def web_protocol
-      self.web['protocol'] ||= web.https ? "https://" : "http://"
+      self.web['protocol'] ||= web.https ? "https" : "http"
     end
 
     def web_host 
@@ -18,10 +18,15 @@ class Settings < Settingslogic
       self['url'] ||= build_url
     end 
 
+    def web_port 
+      web['port'] ||= 80
+    end
+
     def build_url
       raw_url = self.web_protocol
-      raw_url << web.host
-      raw_url << ":#{web.port}" if web.port.to_i != 80
+      raw_url << "://"
+      raw_url << web_host
+      raw_url << ":#{web_port}" if web_port.to_i != 80
       raw_url
     end
 
diff --git a/lib/color.rb b/lib/color.rb
index 4eabe249c180bf879661976cf3e2bd4373432713..4723804e5f89edacaaf5150f9656ec50323f33c1 100644
--- a/lib/color.rb
+++ b/lib/color.rb
@@ -1,4 +1,6 @@
 module Color
+  extend self
+
   def colorize(text, color_code)
     "\033[#{color_code}#{text}\033[0m"
   end
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index aabb4334d0c1609d09e421b9c3ab651ef3178e55..4df771b97fe973235d2aee0e4c11da4026e1e494 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -4,10 +4,6 @@ describe Notify do
   include EmailSpec::Helpers
   include EmailSpec::Matchers
 
-  before :all do
-    default_url_options[:host] = Gitlab.config.web_host
-  end
-
   let(:recipient) { Factory.create(:user, :email => 'recipient@example.com') }
   let(:project) { Factory.create(:project) }
 
@@ -18,7 +14,7 @@ describe Notify do
   end
 
   describe 'for new users, the email' do
-    let(:example_site_url) { root_url }
+    let(:example_site_path) { root_path }
     let(:new_user) { Factory.create(:user, :email => 'newguy@example.com') }
 
     subject { Notify.new_user_email(new_user.id, new_user.password) }
@@ -40,7 +36,7 @@ describe Notify do
     end
 
     it 'includes a link to the site' do
-      should have_body_text /#{example_site_url}/
+      should have_body_text /#{example_site_path}/
     end
   end
 
@@ -68,7 +64,7 @@ describe Notify do
           end
 
           it 'contains a link to the new issue' do
-            should have_body_text /#{project_issue_url project, issue}/
+            should have_body_text /#{project_issue_path project, issue}/
           end
         end
 
@@ -92,7 +88,7 @@ describe Notify do
           end
 
           it 'contains a link to the issue' do
-            should have_body_text /#{project_issue_url project, issue}/
+            should have_body_text /#{project_issue_path project, issue}/
           end
         end
       end
@@ -110,7 +106,7 @@ describe Notify do
           end
 
           it 'contains a link to the new merge request' do
-            should have_body_text /#{project_merge_request_url(project, merge_request)}/
+            should have_body_text /#{project_merge_request_path(project, merge_request)}/
           end
 
           it 'contains the source branch for the merge request' do
@@ -142,7 +138,7 @@ describe Notify do
           end
 
           it 'contains a link to the merge request' do
-            should have_body_text /#{project_merge_request_url project, merge_request}/
+            should have_body_text /#{project_merge_request_path project, merge_request}/
           end
 
         end
@@ -172,7 +168,7 @@ describe Notify do
       end
 
       describe 'on a project wall' do
-        let(:note_on_the_wall_url) { wall_project_url(project, :anchor => "note_#{note.id}") }
+        let(:note_on_the_wall_path) { wall_project_path(project, :anchor => "note_#{note.id}") }
 
         subject { Notify.note_wall_email(recipient.id, note.id) }
 
@@ -183,7 +179,7 @@ describe Notify do
         end
 
         it 'contains a link to the wall note' do
-          should have_body_text /#{note_on_the_wall_url}/
+          should have_body_text /#{note_on_the_wall_path}/
         end
       end
 
@@ -211,7 +207,7 @@ describe Notify do
 
       describe 'on a merge request' do
         let(:merge_request) { Factory.create(:merge_request, :project => project) }
-        let(:note_on_merge_request_url) { project_merge_request_url(project, merge_request, :anchor => "note_#{note.id}") }
+        let(:note_on_merge_request_path) { project_merge_request_path(project, merge_request, :anchor => "note_#{note.id}") }
         before(:each) { note.stub(:noteable).and_return(merge_request) }
 
         subject { Notify.note_merge_request_email(recipient.id, note.id) }
@@ -223,13 +219,13 @@ describe Notify do
         end
 
         it 'contains a link to the merge request note' do
-          should have_body_text /#{note_on_merge_request_url}/
+          should have_body_text /#{note_on_merge_request_path}/
         end
       end
 
       describe 'on an issue' do
         let(:issue) { Factory.create(:issue, :project => project) }
-        let(:note_on_issue_url) { project_issue_url(project, issue, :anchor => "note_#{note.id}") }
+        let(:note_on_issue_path) { project_issue_path(project, issue, :anchor => "note_#{note.id}") }
         before(:each) { note.stub(:noteable).and_return(issue) }
 
         subject { Notify.note_issue_email(recipient.id, note.id) }
@@ -241,7 +237,7 @@ describe Notify do
         end
 
         it 'contains a link to the issue note' do
-          should have_body_text /#{note_on_issue_url}/
+          should have_body_text /#{note_on_issue_path}/
         end
       end
     end
diff --git a/spec/models/project_hooks_spec.rb b/spec/models/project_hooks_spec.rb
index 9e2a9df2dbd154ad3efe93fed0775eb3388728d7..fcc969ceba5bc209701b0fd4b2545ff0fd5965e6 100644
--- a/spec/models/project_hooks_spec.rb
+++ b/spec/models/project_hooks_spec.rb
@@ -106,7 +106,7 @@ describe Project, "Hooks" do
           it { should include(id: @commit.id) }
           it { should include(message: @commit.safe_message) }
           it { should include(timestamp: @commit.date.xmlschema) }
-          it { should include(url: "http://localhost/#{project.code}/commits/#{@commit.id}") }
+          it { should include(url: "#{Gitlab.config.url}/#{project.code}/commits/#{@commit.id}") }
 
           context "with a author" do
             subject { @data[:commits].first[:author] }
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 0c54ae0136aea578d3d4e62ea376613f5d1f83d9..381fe7592c919904cb64162d518aecdab6995652 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -46,7 +46,7 @@ describe Project do
 
   it "should return valid url to repo" do
     project = Project.new(:path => "somewhere")
-    project.url_to_repo.should == "git@localhost:somewhere.git"
+    project.url_to_repo.should == Gitlab.config.ssh_path + "somewhere.git"
   end
 
   it "should return path to repo" do