libfimg: Initial work on conversion to new DRM-based API

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>