Refactor code and relocate logic

- Add partials for displaying comments and articles

- Move repeated sign in code in tests to spec/support

- Move helper method from controller to application_helper.rb

- Refactor Javascript