Added items controller, added logout to posts#index view and changed routes so that user can only view items when logged in.