Add json endpoint.

 * Override __json__() to get better result.
Apply more bootstrap style to layout.