Limit percent increase when salary is close to upper limit

EV-186

In the front end js refreshes the percent increase to reflect the
actual increase allowed since the salary cannot go above upper limit.
The backend validates the percent increase as well and allows an
increase below the valid ranges only when the current salary is
close to the upper limit.