Putting together the weapons system.

Should work. Will be flawed, but should work.
Was written in the blind, so no guarantees on an absence of typos and
missing semicolons.
Started adding frames for actual weapon use.