Moved the methods that add fdm listeners to the BaseFDMServer class.
Did some refactoring.