Added standalone server for debugging and one more API function.