Put all of the functions in Resources (and the struct) into a header filer

Eclipse doesn't seem to like the header. Also, uses of rand() now have
pseudorandom seeds.