Resource manager improvements and start adding material support