Initial rewrites for newer versions of 'AD' and 'lagrangian'. The general and moment solvers work, but the linear one is a mess.
Update 'Linear' module for new types.
Fix linear' and linear'', which I messed up when re-writing using a 'let ... in' construction.
Merge pull request #2 from jfischoff/update

Update