etnaviv: split off low-level functions to library

Create a library libetnaviv for

a) ioctl (kernel interface) wrapping
b) command buffer handling
c) context handling (still incomplete)
d) register description headers

A future 2D or SVG driver can share this code.