lib: loaders: Rewrite PNM loaders.

* Not yet finished

* Loading and saving ASCII format works fine

* Binary are on TODO

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
tests: loaders: First simple PBM tests.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>