authentication for all apps and actions, remove requires and add dependencies to gemfiles