(feat) route additions counts existing spaces

Before, route manaully added spaces based on whether the function
was passed or defined inline. Now, route counts spaces on config
function or existing state to line up new route. This allows
for more user customization.