move most of stored file logic to core. support stored file in url and url and image tags. add a readme to the sample project