Some common functionalities for playframework based API's