Updated file-loading, separate gallery and upload pages etc.

Added coreclass, pageView class, config, etc.