Fixed a container run/alloc bugs.

Container allocation and monitoring is now handled better. Appmaster
registration is now done first before allocator is doing any real
requests from resource manager. Also better debug logging and some
changes to command line launching.