Change aasm_state to state

This allows a expired, or expiring state to be set
Get days to expiry for expiring certificates
Add translations
Add status badges for expiring or expired certificates