Add lex sub-command to gitbook binary

The lex command is useful for debugging files and seeing how they are
parsed
Set size of exercise code editor according to solution

Use the number of lines in solution to set editor’s size