[WFLY-1365] Allow RemoteLoadableExtension to define module dependencies

https://issues.jboss.org/browse/WFLY-1365
#### Contains #4522