Session and FailureCause Query

Commit includes the query to return all affected IMSIs for given failure
cause. Also includes login/logout using sessions.