Convert al the Ruby 1.8 hashrockets to 1.9 syntax
Remove duplicate scope from ProjectStatus

 * Remove where clause for project and limit clause from #recent. it has too many responsibilities.
 * Project#recent_status is not used with 'count' argument, so it could go away.
 * Change "... IS NOT" where clause to where.not(...) available from Rails 4

[#52400867]
Change inspect to to_json. It is safer
Refactor models

[#52400867]
Refactor scope models

 * Change hard-coded "... IS NOT NULL" sql to where.not(...)
 * statuses.where(success: false) is equivalent to statuses.red

[#52400867]
Upgrade draper

0.12.0 is 2 years old and I can't find the docs for it any more.
Move #current_build_url to decorators

It is only used in views so we can move it to decorator. We can't easily move other url methods since they are used in poller/payload_processor.

[#52400599]
Remove unused methods

[#52400599]
Move #status_in_words to decorator and refactor decorators

[#52400599]
Use alias_attribute instead of just defining a method

[#52400599]
Do not stub out methods of the class that is being tested

Instead, just let the class save the record and find it to see if the data is persisted as expected.
Small refactoring

[#52400599]
Move #to_partial_path to decorator

[#52400599]
Expose #url_with_scheme method to use it in decorator

[#52400599]