A few extensions to various classes in Swift. Added a few convenience functions inspired from Ruby