Add Resource

not finished to insert into kernal
2013-11-21-3-18 final

//TODO
let resource to be static