Fixed automatic role attachment for logged in users.
Changed to use /rapidcontext/files as base path for all resources.