Fixes #27.

This merges the functions of the example-page into the development view. This
should make for better development as the page I look at now is more like the
functions that are actually used. In addition it gives me ideas about what
other functions would be helpful in the jquery plugin.
Fixes #28

This was caused by messing with the width and height each time I was drawing. I
fixed that and moved the defining teh domain and range into the main section.
This is useful I think. In addition we don't have to worry about ever needing
to mess with the size now.
Remove unused function.
Fixes #30.

Motifs can now be toggled by type like with interactions. I've created a
togglable part of the library which is applied to nucleotides, motifs and
interactions which can toggle the display of things based upon their class. It
adds some common functions, like all, show, hide and such. The fact that it uses
a class is moderately important right now. Changing that is possible but will
pose problems.

This is also a step in the direction of dealing with #29. Right now it does not
because we clear out all the old information about what is stored each time we
redraw. That will be fixed though.
Minor cleanups.

The way everything was drawn was a bit odd. We would call a function on the
selection to do everything. It's easier to just do what we want to the
selection directly without the need for some callback. This reorganizes things
like that. Also since the code for the two scales is the same we create a
function for that.
Rename visibilityString to visibility.

I dislike the old name.
Reorganize main some more.

Motifs, interactions and nucleotides all have some of the same steps to make
them, that is setting the id, class, visibility and handlers. We put all of
these steps into one function which all then call.
Update library
Update stylesheets to move jmol window
Add buttons for toggling motif types
Fix #29.

This now only creates the actions once which fixes #29 when combined with my
previous work to fix #30. I'm worried that this could have some side effects
somewhere but I can't see any yet.
Only set actions after we have done all components

There was the side effect I was worrying about. We set actions on the first
component meaning we never setup the rest. This moves the setting to the end so
that after we have created all component actions we don't do it again.
Improve motif controls
Don't use motifClick callback for the controls.

That callback shows information about a motif and shouldn't be used for a
control callback.
There is no jmol.showGroup.

Now we always do showSelection. This will now call the jmol function correctly
at least.
Use correct method to extract the nts to display.
Move all config data to one place.

Makes it easier to keep track of all the options for each element. This
requires we do a deep copy, thus the true as the first argument to extend.
Simplify some brush stuff.

There were some no op functions in the brush code. I've removed them and will
add them back once they are actually used. In addidition I change the name of
the attribute we add from checked to selected as these are not check boxes.
Update lib
Update libs