Don't create metadata.js if it already exists. Not perfect caching but it'll work for now
Test to answer SO post
removed unneeded object
minor fix
cleanup
Take advantage of metadata.js script so client doesn't have to ask server for metadata
Test - tidy up customerDetails controller testing. Also add testing the bootstrap.dialog service via the vm.deleteCustomer function
Test - initial work for testing customer controller