New skin support with resource loader

Change the format of the skin to be more easily includable. Also,
add resource loaded support and some configuration options (that
will be used in later commits).