added Expires function
added http response functions
added token base authentication middleware