Add base serializer class.
Remove unused API endpoints, and view mixins. Refactor views.
Revert "Remove unused API endpoints, and view mixins. Refactor views."

This reverts commit cb0b154b001bcfa42ec2ef2b76e17dd26f0f474e.
Add db migration files to .gitignore.