Separated API and added HTML output.

Added template output for cats list and individual cat pages. API is
now served by the subrouter at /api/.