Merge pull request #283 from wolfmanjm/upstreamedge

Add M400 which waits for all moves to complete before returning ok
Fix buf in simpleshell where cat /sd/file where file has a very long line causes crash