not showing loading indicator unless layer is loading
saving layer state, so we know when to display the loading spinner
added tests for layer loading attribute
conforming to coding standards, changes as per review
Merge pull request #558 from aodn/issue_493

Issue 493