Smart gamelist support

Support for smart gamelists has been added to the dbmanager.
Also a new filters system has been written.