Created function to return an array of stock objects. Detail view can be initialized with a  stock object to speed up loading.
Merge remote-tracking branch 'origin/master'