simplified loader api and added builtin caching

--HG--
branch : trunk
6 files changed