Added gems and session controller and tests