add test for structured perceptron, minor fixes
use max_losses in structured perceptron to have comparable loss curves
hack example gallery css