Added user scheduler on CC and misc fixes on NC

    - fixed cleanup failure when SC is not registered
    - fixed compile warning in ebs_utils.c
    - minor logic tweaks
    - added headers to ebs_utils.c
    - fixed reboot after migration
    - new user scheduler for CC
    - new misc function str2file() and unit tests for it

    Fixes EUCA-5837