Increase mysql security, make security recipes more portable.

Make the security recipes restrict ip by a node attribute rather
than hardocded values. Also tune some mysql defaults that are
insecure away.