Merge pull request #3 from oneilcin/master

removed unused replication_factor from api config
wait for api port after restart