Account for undefined before/afterListeners
Merge pull request #490 from fabien/feature/deep-remoting

Account for undefined before/afterListeners
Enable remoting for embedsOne relation

Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
Fix tests
Merge branch 'feature/embeds-one-remoting' of https://github.com/fabien/loopback into feature/embeds-one-remoting