Must decrement instance for already-registered devices or else registration of new device won't trigger at the right slot.
Fixed device scanner.
Fixed realloc subroutine so it doesn't always return a NULL pointer. However, till needs to free memory upon reallocation.
Merge branch 'master' into xula2-lx25
Merge pull request #16 from xesscorp/master

Must decrement instance for already-registered devices or else registrat...