moved user lookup functionality into userindex

still seems kinda weird two have two distinct (though related) packages
in the same repository
refactored to avoid hard-coded filename