Increased needed memory for APC to 512M + code cleanup

- Increased the needed memory for APC to 512M as we often run into memory problems on our 256M box
- fixed the RAM calculation to divide by 1024 and not 1000
- code cleanup (renaming variables and creating new to avoid magic numbers)
Fix #3174 Handling of gateway groups in openvpn_restart()
If the underlying vip of a gateway group that an openvpn client is bound
to is in backup mode then the client should not start.
Resolves #3177. Do a filter reconfigure if the dynds ipsec hosts are present and being reloaded.
Traffic Shaper GUI text typos

and note the Queue Limit is a number of packets (not packets per second)
Make sure RRD data is restored from backup before upgrading data and a new backup is done after. It should fix #2159
Fix issue reported on http://forum.pfsense.org/index.php/topic,66160.0.html
Fix #3004:

. Create a function to replace strings on deep associative arrays
. Use the recent created function array_replace_values_recursive to fix
  VIP interface names instead of touch config.xml directly
Correct typo on variable name
Disable state killing on gateway failure by default for new configs.
Clarify the text describing the option while here.
Bring back static routes to fix issues reported on Ticext #3179
Merge pull request #793 from shahidsheikh/master

Fix #3174 Handling of gateway groups in openvpn_restart()
Merge pull request #796 from phil-davis/master

Traffic Shaper GUI text typos
Merge pull request #786 from individual-it/master

Increased needed memory for APC to 512M + code cleanup