Finish memory session provider.

1. finish memory session provider code.
2. add some extra code for session module, like session manager.
3. add session methods to proc.
4. rename a method in tplcache.
5. todo: review the code of session module and fix a bug found in dogo
sample project "/die" page.