Add a resource preload mechanism to the frontend ui

Simply specify resource to preload when initializing the
ui and they will start to be retrieved immediately so that
when it's time to display entities on canvas their graphic
representations are good to go
flush out a few more tests