Merge branch 'controllers-and-views' into develop-blog

 creates resources for User, Post and Comment models
 creates a number of simple specs to test the resource views
 creates basic controllers
 creates basic views
Creates admin namespace for all current controllers, helpers and views

 modified:   config/routes.rb

 renamed:    app/controllers/comments_controller.rb -> app/controllers/admin/comments_controller.rb
 renamed:    app/controllers/posts_controller.rb -> app/controllers/admin/posts_controller.rb
 renamed:    app/controllers/users_controller.rb -> app/controllers/admin/users_controller.rb
 renamed:    app/views/comments/_form.html.erb -> app/views/admin/comments/_form.html.erb
 renamed:    app/views/comments/edit.html.erb -> app/views/admin/comments/edit.html.erb
 renamed:    app/views/comments/index.html.erb -> app/views/admin/comments/index.html.erb
 renamed:    app/views/comments/new.html.erb -> app/views/admin/comments/new.html.erb
 renamed:    app/views/comments/show.html.erb -> app/views/admin/comments/show.html.erb
 renamed:    app/views/posts/_form.html.erb -> app/views/admin/posts/_form.html.erb
 renamed:    app/views/posts/edit.html.erb -> app/views/admin/posts/edit.html.erb
 renamed:    app/views/posts/index.html.erb -> app/views/admin/posts/index.html.erb
 renamed:    app/views/posts/new.html.erb -> app/views/admin/posts/new.html.erb
 renamed:    app/views/posts/show.html.erb -> app/views/admin/posts/show.html.erb
 renamed:    app/views/users/_form.html.erb -> app/views/admin/users/_form.html.erb
 renamed:    app/views/users/edit.html.erb -> app/views/admin/users/edit.html.erb
 renamed:    app/views/users/index.html.erb -> app/views/admin/users/index.html.erb
 renamed:    app/views/users/new.html.erb -> app/views/admin/users/new.html.erb
 renamed:    app/views/users/show.html.erb -> app/views/admin/users/show.html.erb
Added appropriate namespacing to controllers, helpers, views and specs for new admin namespace
(This would have been much simpler if planned from the beginning!)

 modified:   app/controllers/admin/comments_controller.rb
 modified:   app/controllers/admin/posts_controller.rb
 modified:   app/controllers/admin/users_controller.rb
 modified:   app/views/admin/comments/_form.html.erb
 modified:   app/views/admin/comments/edit.html.erb
 modified:   app/views/admin/comments/index.html.erb
 modified:   app/views/admin/comments/new.html.erb
 modified:   app/views/admin/comments/show.html.erb
 modified:   app/views/admin/posts/_form.html.erb
 modified:   app/views/admin/posts/edit.html.erb
 modified:   app/views/admin/posts/index.html.erb
 modified:   app/views/admin/posts/new.html.erb
 modified:   app/views/admin/posts/show.html.erb
 modified:   app/views/admin/users/_form.html.erb
 modified:   app/views/admin/users/edit.html.erb
 modified:   app/views/admin/users/index.html.erb
 modified:   app/views/admin/users/new.html.erb
 modified:   app/views/admin/users/show.html.erb
 modified:   spec/requests/admin/comment_pages_spec.rb
 modified:   spec/requests/admin/post_pages_spec.rb
 modified:   spec/requests/admin/user_pages_spec.rb
Adds remember_token field to users table, and updates specs

 new file:   db/migrate/20131205121032_add_remember_token_to_users.rb
 modified:   db/schema.rb

 modified:   app/models/user.rb - defines a method to create the token
 modified:   spec/models/user_spec.rb
Adds div for flash messages and debug information to application layout

 modified:   app/views/layouts/application.html.erb
Defines a Session resource and sign in/sign out routes

 modified:   config/routes.rb
Creates a Session controller and specs to handle authentication

 new file:   spec/requests/session_pages_spec.rb - integration tests, can be improved
              once specs for admin site are developed

 new file:   app/helpers/sessions_helper.rb - sign in, sign out and other helper methods

 modified:   app/controllers/application_controller.rb - include SessionsHelper

 new file:   app/controllers/sessions_controller.rb - create (authenticates user and creates a session) and destroy actions

 modified:   app/views/layouts/_header.html.erb - show `Sign Out` link where appropriate
              no `Sign In` link as future admin site is private

 new file:   app/views/sessions/new.html.erb - simple form for signing in

 new file:   app/assets/javascripts/sessions.js.coffee
 new file:   app/assets/stylesheets/sessions.css.scss
Creates sign_in method in spec utilities and uses in session request specs

 modified:   spec/requests/admin/session_pages_spec.rb
 modified:   spec/support/utilities.rb
Creates a route to a Dashboard index

 modified:   app/controllers/admin/sessions_controller.rb - after signing in, redirects to admin dashboard
 modified:   config/routes.rb
Adds new helper method to authorise a user

 modified:   app/helpers/admin/sessions_helper.rb
Adds a very basic Admin Dashboard

 new file:   spec/requests/admin/admin_pages_spec.rb - simple request specs

 new file:   app/controllers/admin/dashboard_controller.rb - index method, with authorise before_action
 new file:   app/views/admin/dashboard/index.html.erb
Creates an Admin::BaseController to require authorisation for each sub controller

 new file:   app/controllers/admin/base_controller.rb

 modified:   app/controllers/admin/comments_controller.rb
 modified:   app/controllers/admin/dashboard_controller.rb
 modified:   app/controllers/admin/posts_controller.rb
 modified:   app/controllers/admin/users_controller.rb

 modified:   spec/requests/admin/comment_pages_spec.rb - create user and sign in before each spec
 modified:   spec/requests/admin/post_pages_spec.rb
 modified:   spec/requests/admin/user_pages_spec.rb
Stores location before redirecting to authorisation url

 modified:   app/helpers/admin/sessions_helper.rb - this way after signing in, redirects to previous page
Adds spec for Dashboard link in header

 modified:   app/views/layouts/_header.html.erb
 modified:   spec/requests/admin/session_pages_spec.rb
Adds more specs to Dashboard index page

 modified:   app/views/admin/dashboard/index.html.erb
 modified:   spec/requests/admin/admin_pages_spec.rb
Merge branch 'admin-dashboard' into develop-blog

 Creates session controller with sign in/out methods
 Adds remember token to Users model
 Moves User/Post/Comment controlelrs to 'admin' namespace
 Protects 'admin' namespace with authorisation
 Creates simple dashboard index view
Adds a public Post resource, with only index and show actions

 modified:   config/routes.rb

 new file:   app/controllers/posts_controller.rb
 new file:   app/views/posts/index.html.erb
 new file:   app/views/posts/show.html.erb
 new file:   spec/requests/post_pages_spec.rb
Adds Kaminari gor pagination and implements paging of Posts

 modified:   Gemfile
 modified:   Gemfile.lock
 modified:   app/controllers/posts_controller.rb - paginates using page param
 modified:   app/models/post.rb - defines number of posts per page
 modified:   app/views/posts/index.html.erb - adds pager links
 modified:   config/routes.rb - defines a route so that page urls are pretty
              (posts/page/2 and not posts/?page=2)
Merge branch 'public-controllers' into develop-blog

 Introduces a public Post controller with pagination (using Kaminari)
Adds truncate_html gem to project and HTML elements to post index

 modified:   Gemfile
 modified:   Gemfile.lock
 modified:   app/views/posts/index.html.erb