Finished resource parser

- converted resource.js to an xml form
- finished resource parser to user resource.xml
- added updated images
- added a sprintf function