Access token expires date check fixes

10-second buffer was wrong. Needs to be checking with 10 seconds past
current date with expires date.
There’s actually hasExpired method for accessToken. Fix is moved there
and made change to createConnection to use it.