Exposing more of pomeloManager and fixing several bugs.