[headless] Set up access manager before starting server

This became necesary to due an upstream change we missed when bumping
the dependency:

https://github.com/tipsy/javalin/commit/ab19ff91b7963313479779636c557770d93a5098
parent 53da1379
Pipeline #2621 passed with stage
in 10 minutes and 7 seconds