Added getId, improved getCurrentSession

The getCurrentSession method now initializes the session if it wasn't already initialized.