adds login verification, changes chains, adds mw

login verification for answers api.
chains can be defined as ‘breakable’ or ‘non-breakable’.
now chains can be broken through the request context (instead of
through an http header).
added some more middleware.