Refactor getProperty

Also, fixed bug where setProperties was looking for a property named "index" and setProperty was looking for one named driverIndex.
refs #2589