added flux architecture (using reflux), added ship configuration logic