Added ship.getSlots() function

 as requested here: http://forum.naev.org/viewtopic.php?f=8&t=877