Extracted non-related controller method into Croogo Libraries.

Title is kind of explicit. I may be add some tests later to cover newly created methods.