auth token is now checked by the Rest controller
add a way to include external css and js files
uniformize function name