bump rails to 3.2.11
fix a few test related to the ports
fix potential template error that occurs when a user deletes a system and test results still link to it.