tweak the precompile block to work with sp

what was there before this commit was working with si, but not sp
it seems this way is the proper way of doing it in rails4
make conditional selects detect changes so that the conditional element's visiblity is updated
support choice fields that aren't just yes/no