minimal cowboy handler with all startup stuff