Made function to get Fact from HTML string (was logic located in FactCreationDialog) and added unit tests for it, moved additional prototypes to function so tests could use it, started on rule of replacement calculating, though still no display