Move ply loading code into its own file

Attempt to reduce clutter in pointarray.cpp