make security status depend on a rails application

This way we can have different status for the same security alert but
for different applications. This is a pre step for having users and
being able to see what other users have selected on that security alert
but letting you select a different option if you consider that is
better.