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>