Refactor __init__ and init_app method

Change __init__ method for pass app later.

Refactor __init__ and init_app method to the RQDashboard class, so that we can make an instance without having to pass an app ( unit testing purposes, create_app factory, among other things), and pass the app later on using init_app, like most flask extensions do.