Extend master-master capabilities and add SSL

I refactored the cookbook so it is able to configure a master-master setup as well. People also use SSL while replicating outside of internal network, etc, so it is an useful option, I added it too.

Also refactored the way the main config is generated. Instead of 3 similar templates we only use 1 now, and also are able to do custom stuff at the same way not just one OR another.

Same goes for the replication template, we use 1 template for both master and slave, and enable the required sections based on specified attributes.

Of coutse I also fixed the specs.

Please take a look and merge if you think this is useful.

Thanks !