FIX: Do not fail on work insertion.

Was solved by 5cc76c0, but side effect regression probably introduced by f7d3110.
FIX: Works page doesn't fail with an empty database.
API: Fixed indentation in client's Javascript files.
FIX: "Add work" link at a better place.

Not at the bottom of works list, on the right side.