Make the app secure

I have worked around security practises as I see it the main. Obviously this is not the end point and I will continue investigate in this and considered a important part of the development. I think I actually significantly improved security state of the app applying security mechanisms which I have discovered.