added session type and sessionStorage interface.
Module type conversion function.
Destroy now is more complete, also removing the reference from module array.
Adapted test so only registered modules types are tested
Merge remote-tracking branch 'origin/master'