Added expiration checking on the authorization cookie.

Added support for custom arguments when installing as a service.