fts: Added fts_library_init() and _deinit() Replaces calling three different functions on init and deinit.