[2.0] cleanup after pr 304

- fix jsdoc comments in lib/loopback
- remove `assertIsModel` and `isDataSource`
- remove the circular dependency between lib/application and lib/loopback

/to @ritch please review