Spark Integration: SparkPageRank now uses Service

Added a simple service to SparkPageRank example application to showcase how to use services in Spark.

@anew : Please review. Thanks.
Always use `try-finally` to have close done in finally block.