Fix a bug about the default value for fecha_fin, use id_encuesta where appropriate and add support for polls that are closed (fecha_fin is lower than current date on the server).