refactoring splited library from server for easier replacement with fx server gui and client with android client