FT-258 Move cursor code into ft/cursor.h and ft/cursor.cc
FT-258 Remove a malloc from the cursor creation path
FT-258 Put is_temporary bit into the cursor constructor