add devise & bootstrap 3; extract token generation