Fix selectedVersion reference bug

Setting library.selectedVersion = library.versions[0] creates an unwanted reference link that results in the [0] element getting overwritten once a new library.selectedVersion is selected. Using angular.copy prevents this unwanted reference.
Merge pull request #60 from jseppi/patch-1

Fix selectedVersion reference bug