openfimg: Work in progress (2013.12.27)

- Most of draw code already in place.
- Replaced primconvert with direct use of u_indices.
- Reworked and/or cleaned-up some code.

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