move pry to development only
Refactor sessions into true session management.