make REPL injectable and overrideable like other services
refactor:
 - redundant code
 - line length
 - guard clauses
 - EOL at end of file
 - readonly fields
 - replace if with null coalesce
 - replace if with inline conditional
 - whitespace
Merge pull request #877 from adamralph/refactor-830

refactoring after #830
red: add AliasCommandTests.ExecuteMethod.ShouldNotThrowAnExceptionWhenAnUnknownCommandIsPassed
green: implement AliasCommandTests.ExecuteMethod.ShouldNotThrowAnExceptionWhenAnUnknownCommandIsPassed
refactor: AliasCommand and AliasCommandTests