Teh/linesearch

I cherry-picked improvements on the `teh/constrained` branch (those that didn't involve the speculative interior point method), because I didn't want a merge headache. Then I got rid of Options. Should fix #71, #75. May also address #79, but I haven't looked yet.
So we had a little bug here with the squaring step?