Added form classes with validation and g.user to views.

Refactored the graph decorator to accept all form submissions from the
graph.html page. Added form validation. Use the users id to return only
their saved graphs.