Update models to take constructor arguments.
Add pretty query parameter for json output.
Fix typo.
Remove common module.