core: basic xattr support

Adding get and set xattr support.

Signed-off-by: Adam Manzanares <nmtadam@gmail.com>