Consume \n in mg_fgets when reading from membuf.
(mg_fgets) Accept lines at the end not terminated by \n
(mg_fgets) Don't consume more than size bytes when line cannot fit into buffer.
Merge pull request #212 from pas2k/master

Consume \n in mg_fgets when reading from membuf