HTML5: Move methods from redis/index to a class RedisAction

Not working 100% yet and a lot more can be improved in this class.
The rest of the code should also be moved into classes like this one.