Link code to problem. Redesign problem/code/dataset views files

code.rb
belongs_to :problem

problem.rb
has_many :codes

<migration>.modify_codes.rb
remove_column :codes, :user_id, :integer
add_column :codes, :problem_id, :integer
add_column :codes, :username, :string