add frontend.js to .gitignore
fix a couple stupid bug with the new sorting in main.py
only show appropriate card action buttons, conditional on context
rm frontend.js