refactor foreman.rb
move /lib to initailziers
move ws_proxy to app/services
moved ensure_not_used_by to separate file from core extensions
moved hostable to core_extenstions