modified layout views.
check rails enviroment.
add equalize.js
modified favorite/index view.
refs #155.
modified application_controller and session_controller.
refs #156.