Incremental refactor

Following on from !144 (closed) (from book https://leanpub.com/mlaphp) I figured we could just go through step by step and keep track here.

These are all the chapter headers, some of them won't make so much sense, feel free to remove things :)

If the task needs more detail, can also create an issue and link it back here.

Edited by Fridtjof