More code refactorisation of the specific_analyses.n_state_model package into new modules.
The API object is now in the 'api' module, the remaining private methods have been shifted into the
'optimisation' and 'uf' modules, and the user function documentation moved to the 'uf' module.