integrate new ci auth

integrate new ci auth.
@see http://labs.cityindex.com/labs-team/2013/08/21/ciauth-in-action/