Change api client and auth. Start server command.

Lot of genearal clean up.
start server and template rendering