Moved some functions to a seperate file.
Finished tab to manage data (-minus the row select bug and limiting to users own data).
Several sanity checks of uploaded data.