A Nearly-Black-Box Online Algorithm for Joint Parameter and State Estimation in Temporal Models