Implemented "compiles" method for service providers.

See proposal #1916 from last year.

Decided to target `master` for this, will re-submit if you'd like it against `4.1`, just let me know.

Would also love feedback on the implementation. Cheers.