Added multipage login from one userId. Added Postgres archiving and gettint history. Properly handling receipts and messages for multipage login.