This is working pretty well - a single-file solution. Still has expiration issues tho.