Libs: Refactored resources, added accessor properties

Retrieves all blue magic spells:
`res.spells:type('BlueMagic')`

Retrieves all weapon skills:
`res.abilities:prefix('/weaponskill')`

Etc.
Libs/Resources: Refactored and fixed stack overflow
Libs/Tablehelper: Nya~