Use database joins for fixed ips to other objects

Many of the fixed ip related calls are extremely inefficient. This
joins a couple of calls so that we can optimize queries that use
them.

Change-Id: Ifa2e4c6ac517286f7ae952052d29801b45a6b6b2
Partial-bug: #1365606
Merge "Use database joins for fixed ips to other objects"