Fix rc file parsing
Add resource loading
Initial caching for buttons