This is an Erlang version of 9mobile/ResourceManager, It still not complete yet