Adds a composer file
Updates use of arrays, adds php5.4 as travis target