easynmc: Implement poll and most ioctls. stdio is still WIP

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>