Metaform/CSV parse updates.
Fixed error caused by user selecting "blank" metaform from drop down.
Fixed error casued when user tries to submit a metaform with no metadata rows.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Metadata Editor Alpha
Added metadata editor to document show view. Users can add and edit rows
 of metadata in the document by double clicking a cell while in "edit"
 mode.

Data is sent to the controller for processing on save.

Added jquery plugin, table to json, to convert HTML table to json so it
 can be sent via ajax to the server.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Metadata Editor update.
Added cancel button.  Cancels all unsaved changes made to metadata table
 in a document.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Metaforms and Metadata Editor Updates
1. Changed MD editor so "edit metadata" editor button is included by rails,
 instead of by jQueary.

2. Fixed bug in Metaforms so metadata can be deleted in the edit menu.

3. Added CanCan access control to Metaforms, now only the metaform creater
 can few or edit their metaform.

TODO: Fix access control so metaform works in a document.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Metaform Access Control Update
Added CanCan access control back into metaforms. Added a custom action for
 adding metadata to a document through a metaform.

Made updated CanCan's ability model to make access control with metaforms
 better.

Changed routing for adding a metaform to a document.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Metaforms Unit Tests Update
Updated unit tests due to changes in Metaforms.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Merged Metaform branch into integration.
Merged version of metaforms includes metadata editor alpha and metaforms
 with access control (CanCan).

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Seperatetion of data nd metadata.
Viewing a document now just shows metadata by default. Added a link for
"show data". Viewing metadata only should be much faster.

Update to metaforms access control to allow access by an editor (needs
more testing).

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Document Data Updates
Made updates to document "show data".  Moved duplicate controler code to
helper.  Modified CanCan access control for "show data" page. Added
unit tests for new helper functions.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Document Notes Demo Prototype
Added a simple notes editor, mainly for demo purposes, to the document
show view.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Notes and Metadata Editor Updates
Updated document notes so when the note is shown it keeps its original
formating.
Bug fix for metadata editor: bug that was casuing existing text to be
deleted after a new row is added has been fixed.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Metadata Editor updates
Fixed POST bug content type bug.
Added CSS to metadata table.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
Documents Metadata Updates
Added "rails_autolink" gem that allows URLs and emails in a view to
become clickble links. Only being used in metadata and notes for now.

Signed-off-by: shanesuofi <shanes@vandals.uidaho.edu>
saving state
adding some untracked files
merging in int