Added fact storage with file backend.
Added group for group functionality in the future.
Some refactoring of some methods.